Skip to content

Commit 5605366

Browse files
committed
Enable checksumming before sending the auth message
1 parent 8d62b28 commit 5605366

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cassandra/connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,9 @@ def _handle_startup_response(self, startup_response, did_authenticate=False):
13451345
"if DSE authentication is configured with transitional mode" % (self.host,))
13461346
raise AuthenticationFailed('Remote end requires authentication')
13471347

1348+
if ProtocolVersion.has_checksumming_support(self.protocol_version):
1349+
self._enable_checksumming()
1350+
13481351
if isinstance(self.authenticator, dict):
13491352
log.debug("Sending credentials-based auth response on %s", self)
13501353
cm = CredentialsMessage(creds=self.authenticator)

0 commit comments

Comments
 (0)