Skip to content

Close socket on tls n response#486

Closed
DMickens wants to merge 2 commits into
vertica:masterfrom
DMickens:close-socket-on-TLS-N-Response
Closed

Close socket on tls n response#486
DMickens wants to merge 2 commits into
vertica:masterfrom
DMickens:close-socket-on-TLS-N-Response

Conversation

@DMickens
Copy link
Copy Markdown
Contributor

@DMickens DMickens commented Feb 2, 2023

Small change to make sure the socket is closed when SSL negotiation winds up restricting the opening of an SSL Socket.

else:
err_msg = "SSL requested but not supported by server"
self._logger.error(err_msg)
self.close_socket()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This close_socket() function only works when the connection is established, enabling TLS is just before that step. So this line actually doesn't take effect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. I originally had raw_socket.close() before seeing the close_socket function, but that makes sense. I'll close this PR

@DMickens DMickens closed this Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants