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

fix(client): keep the underlying connector when setting an SSL verifier #518

Merged
merged 2 commits into from
May 10, 2015

Conversation

mlalic
Copy link
Contributor

@mlalic mlalic commented May 9, 2015

The client no longer drops the old Connector instance, along with its
entire context (such as the settings and pooled connections in the case
of a Pool connector); rather, it passes the SSL verifier on to the
Connector so that it uses it for any future connections that it needs
to establish.

A regression test is included.

Closes #495

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.47% when pulling 4988060 on mlalic:fix-client-ssl-verifier into 38f40c7 on hyperium:master.

mlalic added 2 commits May 9, 2015 20:10
The commit includes an implementation of the new trait method for all
existing trait impls.

BREAKING CHANGE: Adding a new required method to a public trait is a
breaking change.
The client no longer drops the old `Connector` instance, along with its
entire context (such as the settings and pooled connections in the case
of a `Pool` connector); rather, it passes the SSL verifier on to the
`Connector` so that it uses it for any future connections that it needs
to establish.

A regression test is included.

Closes hyperium#495
@mlalic mlalic force-pushed the fix-client-ssl-verifier branch from 4988060 to f4556d5 Compare May 9, 2015 18:12
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.47% when pulling f4556d5 on mlalic:fix-client-ssl-verifier into 38f40c7 on hyperium:master.

@seanmonstar
Copy link
Member

Excellent, thank you!

seanmonstar added a commit that referenced this pull request May 10, 2015
fix(client): keep the underlying connector when setting an SSL verifier
@seanmonstar seanmonstar merged commit 7bc4e83 into hyperium:master May 10, 2015
@mlalic mlalic deleted the fix-client-ssl-verifier branch May 10, 2015 11:34
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.

Client: Setting a custom SSL verifier discards previous Connector
3 participants