[TIMOB-24944] "SSL handshake timed out" error for HTTPClient with 4G Connection. Wi-Fi connection is ok.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2018-12-11T08:47:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Sharif AbuDarda |
Assignee | Unknown |
Created | 2017-07-06T13:42:29.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
appc+info.rtf | 2017-07-07T15:24:31.000+0000 | 57879 |
[~sdarda] - Please provide the Appcelerator environment details to check further.