TLS support for OkHttp when not running on Android
OkHttp transport current accepts a SSLSocketFactory which when on Android is provided by the OS. For testing when not running on Android we don't have a way to do TLS/ALPN. We need one.
@JakeWharton, what do you suggest on this one? I've not looked into the OkHttp code to see if we can reuse some of the Platform/TLS stuff to work on and off Android. Right now getting TLS on Android for gRPC is more painful than we would like, so leveraging more of OkHttp in general would likely be appreciated.
@madongfly, have you looked at reusing parts of OkHttp at all?
I don't know enough about this mechanism to provide any useful recommendations or guidance. @swankjesse would.
We've got TLS working, including ALPN, and you can see it by running our test suite. You'll need the Jetty-ALPN extension which is configured by Maven.
@ejona86, no, I haven't. Feel free to assign it to me.
Not required for 0.5.0, but would be nice.
@madongfly, any updates on using TLS outside of Android with OkHttp?
I think @zsurocking picked up my cl and worked on it when I was on vacation, rocking, could you comment on it?
Reopen because after 11d0094e04ec884fb7e2a0670409aff5870b0a53 upgraded Netty to 4.1, the Http2 protocol became to "h2" while OkHttp 2.0 still using "h2-16"
Use OkHttp 2.3? It uses h2.
@swankjesse yeah, we will upgrade it to 2.3.