Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren committed Oct 25, 2024
1 parent c88ac7b commit 062a68d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vertica_python/vertica/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ def enable_ssl(self,
raw_socket.sendall(messages.SslRequest().get_message())
response = raw_socket.recv(1)
self._logger.debug('<= SslResponse: %s', response)
if response == b'':
msg = 'Failed to get ssl response from server'
self._logger.error(msg)
raise errors.ConnectionError(msg)
if response == b'S':
self._logger.info('Enabling TLS')
try:
Expand Down

0 comments on commit 062a68d

Please # to comment.