OkHttp: "Platform.getSelectedProtocol() == null" check is problematic
May 04, 2015 9:48:24 PM com.squareup.okhttp.internal.Platform$JdkWithJettyBootPlatform getSelectedProtocol INFO: ALPN callback dropped: SPDY and HTTP/2 are disabled. Is alpn-boot on the boot class path?
I used "Platform.getSelectedProtocol() == null" prior to our TLS hand shake to check whether user has already done the handshake, if they haven't, this log would show up while we are about to do the handshake.
Actually, I just found the "Platform.getSelectedProtocol() == null" check is problematic, with Android environment , calling conscrypt.OpenSSLSocketImpl.getAlpnSelectedProtocol() before the handshake would cause a NPE, so we have to remove this check.
Fixed by #415
Reopen this issue since the fix only fixed the problem described in my second comment, the original problem is still there.
Closed since we use our own getSelectedProtocol() implementation for Android now.