MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / __init__

Method __init__

cassandra/io/eventletreactor.py:97–106  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

95 cls._new_timer.clear()
96
97 def __init__(self, *args, **kwargs):
98 Connection.__init__(self, *args, **kwargs)
99 self.uses_legacy_ssl_options = self.ssl_options and not self.ssl_context
100 self._write_queue = Queue()
101
102 self._connect_socket()
103
104 self._read_watcher = eventlet.spawn(lambda: self.handle_read())
105 self._write_watcher = eventlet.spawn(lambda: self.handle_write())
106 self._send_options_message()
107
108 def _wrap_socket_from_context(self):
109 _check_pyopenssl()

Callers

nothing calls this directly

Calls 4

handle_readMethod · 0.95
handle_writeMethod · 0.95
_connect_socketMethod · 0.80
_send_options_messageMethod · 0.80

Tested by

no test coverage detected