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
{{ message }}
Repository navigation
TLS support for OkHttp when not running on Android #22
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?
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.
Activity
ejona86 commentedon Feb 4, 2015
@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?
JakeWharton commentedon Feb 4, 2015
I don't know enough about this mechanism to provide any useful recommendations or guidance. @swankjesse would.
swankjesse commentedon Feb 5, 2015
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.
madongfly commentedon Feb 6, 2015
@ejona86, no, I haven't. Feel free to assign it to me.
ejona86 commentedon Mar 11, 2015
Not required for 0.5.0, but would be nice.
ejona86 commentedon Mar 24, 2015
@madongfly, any updates on using TLS outside of Android with OkHttp?
madongfly commentedon Mar 25, 2015
I think @zsurocking picked up my cl and worked on it when I was on vacation, rocking, could you comment on it?
TLS support for okhttp transport.
TLS support for okhttp transport.
madongfly commentedon Apr 8, 2015
Reopen because after 11d0094 upgraded Netty to 4.1, the Http2 protocol became to "h2" while OkHttp 2.0 still using "h2-16"
Temporally support Http protocol name "h2-16" for OkHttp client.
swankjesse commentedon Apr 8, 2015
Use OkHttp 2.3? It uses
h2.madongfly commentedon Apr 8, 2015
@swankjesse yeah, we will upgrade it to 2.3.
Temporally support Http protocol name "h2-16" for OkHttp client.