[go: nahoru, domu]

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

SSL_CTX as part of socket pool #1479

Merged
merged 6 commits into from
Oct 26, 2017
Merged

Conversation

kazuho
Copy link
Member
@kazuho kazuho commented Oct 26, 2017

The global socket pool determines which socket can be reused by looking at the (is_ssl, host, port) tuple. The fact means that SSL connections connecting to the same host:port using different SSL_CTXs cannot be shared within the global socket.

This PR implements the restriction by making SSL_CTX part of the socket pool. The added bonus is that SSL handshake can now be completed within the socket pool.

amends #1434 #1476

@kazuho kazuho force-pushed the kazuho/sslctx-part-of-socketpool branch from ae353af to 7482e02 Compare October 26, 2017 13:28
@kazuho kazuho merged commit 1cf24d2 into master Oct 26, 2017
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.

None yet

1 participant