You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Client::set_ssl_verifier method is called, it will discard any previously existing Connector instance that the Client was instantiated to use. This wasn't a problem before, when the connectors were largely stateless, but with the introduction of a Pool connector, this means that the pool's config will be dropped (replaced with the default one) and the client will use a brand new set of connections, instead of the originally intended ones.
The text was updated successfully, but these errors were encountered:
This is true. Before, it was possible when Client was generic over the NetworkConnector. Perhaps such a method set_ssl_verifier should be added to the NetworkConnector trait...
mlalic
added a commit
to mlalic/hyper
that referenced
this issue
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.
Closeshyperium#495
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.
Closeshyperium#495
When the
Client::set_ssl_verifier
method is called, it will discard any previously existingConnector
instance that theClient
was instantiated to use. This wasn't a problem before, when the connectors were largely stateless, but with the introduction of aPool
connector, this means that the pool's config will be dropped (replaced with the default one) and the client will use a brand new set of connections, instead of the originally intended ones.The text was updated successfully, but these errors were encountered: