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.
Rohit
source share