Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24944] "SSL handshake timed out" error for HTTPClient with 4G Connection. Wi-Fi connection is ok.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNeeds more info
Resolution Date2018-12-11T08:47:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSharif AbuDarda
AssigneeUnknown
Created2017-07-06T13:42:29.000+0000
Updated2018-12-11T08:47:24.000+0000

Description

Hi, I have a problem. I use httpClint to call a webservice. When I use 4G connection, I have an error : SSL handshake timed out. And when I try the same code with the Wi-Fi connection no problem. Bellow is the error log
TiHTTPClient: (TiHttpClient-1) [60008,65535] HTTP Error (java.net.SocketTimeoutException): SSL handshake timed out
[ERROR] : TiHTTPClient: java.net.SocketTimeoutException: SSL handshake timed out
[ERROR] : TiHTTPClient: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
[ERROR] : TiHTTPClient: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:103)
[ERROR] : TiHTTPClient: at com.android.okhttp.Connection.connect(Connection.java:143)
[ERROR] : TiHTTPClient: at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:185)
[ERROR] : TiHTTPClient: at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:342)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:331)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:249)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:437)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:114)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:245)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
[ERROR] : TiHTTPClient: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
[ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1159)
[ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:818)

Attachments

FileDateSize
appc+info.rtf2017-07-07T15:24:31.000+000057879

Comments

  1. Kondal Kolipaka 2017-07-06

    [~sdarda] - Please provide the Appcelerator environment details to check further.

JSON Source