Android Question Error: javax.net.ssl.SSLException: SSL handshake aborted: ssl= : I/O error during sys

Shay

Well-Known Member
Licensed User
Longtime User
Hi

Using HTTPS,
library OkHTTPUtils2 2.20 + OkHTTP 1.01
B4X:
Sub ExecuteRemoteQuery(Query As String, JobName As String)
    Dim Job As HttpJob
   
    If Job.IsInitialized = False Then
     Job.Initialize(JobName, Me)
    End If
    ProgressDialogShow2("getting data, just a sec ...",False)
    Job.PostString(Starter.SSLIP & "Main.php", Query)
    Job.GetRequest.Timeout = 30000

End Sub

Working on some phones without issue
On some sometimes works, and on some never works

also I added the timeout - seems it has no affect - it is not waiting 30 sec. not even 1 sec

getting the following errors:
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
Main, Error: javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x4f8c3028: I/O error during system call, Connection reset by peer
Main, Error: javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x4fa2f560: I/O error during system call, Connection reset by peer
Main, Error: javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x4f9cc5a8: I/O error during system call, Connection reset by peer
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy **
 

KMatle

Expert
Licensed User
Longtime User
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
it is not my server, but on android 6.01 I see 1 error (I have automatic 3 retires)
on lower versions it fails 3/3
do you think the issue cannot be solved on client side?
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Yes, I saw this, I am checking now with the server host company
but do you know how do I enable this:
setSoKeepAlive
  • set the HttpConnectionParams.setSoKeepAlive(params, true)
 
Upvote 0
Top