OkHttp SSL Confirmation Canceled on Android

One of my apps went live last week. And almost 10-20% of application users receive an SSL refusal message, which is interrupted when trying to contact our servers. The other 80% of users are OK, and they can connect, and also at the testing stage we did not notice these errors on our test devices.

The application uses OkHttp 2.5.0 (last) and okio 1.6.0 (last)

Full stack -

javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x64e7c010: I/O error during system call, Connection reset by peer at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(NativeCrypto.java) at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:426) at com.squareup.okhttp.Connection.connectTls(Connection.java:235) at com.squareup.okhttp.Connection.connectSocket(Connection.java:199) at com.squareup.okhttp.Connection.connect(Connection.java:172) at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:367) at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128) at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328) at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:245) at com.squareup.okhttp.Call.getResponse(Call.java:267) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:224) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:195) at com.squareup.okhttp.Call.execute(Call.java:79) 

Crashlytics shows that this is happening on Android 4.3+. This needs to be fixed, since 10-20% of users are really too many in our application.

+7
android ssl
source share

No one has answered this question yet.

See related questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to keep Android activity state by saving instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
one
javax.net.ssl.SSLProtocolException: SSL call canceled: ssl = 0x7fa2258640: error in SSL library, usually protocol error
0
CertPathValidatorException Binding chain for certification path not found in android 7

All Articles