Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

THRIFT-1549: properly unwrap and close TSSLSocket in python #1717

Merged
merged 1 commit into from Jan 27, 2019

Conversation

jeking3
Copy link
Contributor

@jeking3 jeking3 commented Jan 26, 2019

No description provided.

@jeking3 jeking3 added the bugfix label Jan 26, 2019
@jeking3 jeking3 self-assigned this Jan 26, 2019
@jeking3
Copy link
Contributor Author

jeking3 commented Jan 27, 2019

https://bugs.python.org/issue29413 shows that default (and not controllable) behavior for unwrap forces it to wait for a proper shutdown. Nobody does this really... What I have done is added a very, very small timeout (0.001 seconds) to essentially force unwrap() so it does not block reading for something that may never come. We do our best and then close the socket.

@jeking3 jeking3 merged commit 638c91f into apache:master Jan 27, 2019
@jeking3 jeking3 deleted the THRIFT-1549 branch January 27, 2019 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant