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

Set stream context before opening socket #330

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Conversation

tsmgeek
Copy link

@tsmgeek tsmgeek commented Feb 25, 2023

#250

For TLS connections it would be ok setting the stream context options after connection is setup as you are still in cleartext at the start of an non-SSL connection. For SSL connections these options need to be setup in context as stream_socket_client is created so the stream can be verified as its connecting, if not done you will generate a socket failure.

zendframework#250

For TLS connections it would be ok setting the stream context options after connection is setup as you are still in cleartext at the start of an non-SSL connection.
For SSL connections these options need to be setup in context as stream_socket_client is created so the stream can be verified as its connecting, if not done you will generate a socket failure.
@Shardj Shardj merged commit 44043db into Shardj:master Mar 8, 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