Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable HTTP 2 protocol on OkHttp client #152

Merged
merged 1 commit into from
Mar 19, 2018
Merged

Disable HTTP 2 protocol on OkHttp client #152

merged 1 commit into from
Mar 19, 2018

Conversation

lbalmaceda
Copy link
Contributor

OkHttp 2.7.5 (latest) doesn't seem to handle very well the HTTP 2 protocol. While this is fixed on the new OkHttp 3 that implies a breaking change we can't deal with right now.

The present fix is removing the HTTP 2 protocol from the client allowed protocols list. Since the default protocols include both HTTP 1.1 and SPDY 3, those remain enabled.

This will fix auth0/Lock.Android#457

@@ -37,25 +35,34 @@
@Config(constants = com.auth0.android.auth0.BuildConfig.class, sdk = 21, manifest = Config.NONE)
public class OkHttpClientFactoryTest {

private Activity activity;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cocojoe
Copy link
Member

cocojoe commented Mar 19, 2018

We should update to new Major OKHTTP one day.

@lbalmaceda
Copy link
Contributor Author

Yes. The next SDK will definitely run over OkHttp 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OkHttp error
2 participants