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

SSLHandshakeException after leaving the app and returning #3118

Closed
laurencedawson opened this issue Jan 17, 2017 · 1 comment
Closed

SSLHandshakeException after leaving the app and returning #3118

laurencedawson opened this issue Jan 17, 2017 · 1 comment
Labels
bug Bug in existing code
Milestone

Comments

@laurencedawson
Copy link

laurencedawson commented Jan 17, 2017

Bug:

  • Nexus 6P on latest stock 7.1.1
  • okhttp 3.5.0
  • A single OkHttpClient is used for submit all network requests
  1. Launch the app and then leave it in the background for 20-40 minutes
  2. Return to the app and try to execute a request
  3. SSLHandshakeExceptions are now thrown for every request until a new OkHttpClient is created

I've started seeing this issue in my app and it seems a few others have been seeing it to:

http://stackoverflow.com/questions/37885391/okhttp-sslprotocolexception-ssl-handshake-terminated

At the moment my solution is to just create a new OkHttpClient when it encounters a SSLHandshakeException but is there a better way to go about this? Maybe emptying the connection pool and retrying the request?

Thanks

@swankjesse
Copy link
Collaborator

We’ve talked about supporting multiple network interfaces:
#1780

Not sure what other action to take here. We don’t really have visibility into the user’s network state.

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

No branches or pull requests

2 participants