-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Jersey Doesn't Use HttpUrlConnectorProvider with custom SSLSocketFactory #3171
Comments
@glassfishrobot Commented |
@glassfishrobot Commented Regards, |
@glassfishrobot Commented I tried to reproduce your bug, but unsuccessfully. Could you provide an entire test using JerseyTest class, which should be easily runnable? I came across several problems when I was trying to compose some test from your provided examples. Thank you, Petr |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
I am trying to use Jersey + JDK's Http(s)UrlConnection to be able to be notified when SSL handshakes occur via an HttpsUrlConnection through a Jersey client. The request goes through (using SSL), and the response comes back (using SSL) but Jersey is not using the SSLSocketFactory that I provide via a connectorProvider that opens an HttpsUrlConnection and calls setSSLSocketFactory() on that connection. The code should make this more clear.
Invocation + Instantiation:
httpClient:
DefaultSSLContextProvider:
ObservableSSLSocketFactory:
As I said, no exceptions or errors occur (and indeed the original request goes through with no problem (HTTP 200), however the only things that are logged are:
Nothing from
createSocket()
's or the HandshakeCompletedListener.I would expect that the log would contain the entries:
creating ssl socket
Handshake successful!
using cipher suite: (blah)
But in fact they don't show up because the code is not executed.
Environment
Windows/Mac OS X, JDK 8u60
Affected Versions
[2.19]
The text was updated successfully, but these errors were encountered: