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

Method _send_startup_message

cassandra/connection.py:1402–1412  ·  view source on GitHub ↗
(self, compression=None, no_compact=False)

Source from the content-addressed store, hash-verified

1400
1401 @defunct_on_error
1402 def _send_startup_message(self, compression=None, no_compact=False):
1403 log.debug("Sending StartupMessage on %s", self)
1404 opts = {'DRIVER_NAME': DRIVER_NAME,
1405 'DRIVER_VERSION': DRIVER_VERSION}
1406 if compression:
1407 opts['COMPRESSION'] = compression
1408 if no_compact:
1409 opts['NO_COMPACT'] = 'true'
1410 sm = StartupMessage(cqlversion=self.cql_version, options=opts)
1411 self.send_msg(sm, self.get_request_id(), cb=self._handle_startup_response)
1412 log.debug("Sent StartupMessage on %s", self)
1413
1414 @defunct_on_error
1415 def _handle_startup_response(self, startup_response, did_authenticate=False):

Callers 2

_send_options_messageFunction · 0.80

Calls 3

send_msgMethod · 0.95
get_request_idMethod · 0.95
StartupMessageClass · 0.90

Tested by 1

_send_options_messageFunction · 0.64