You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you would like to know or do
Precondition:
the network signal is not good.
the url like "wss://..."
when i create socket with a connect timeout value 5 seconds as following:
super(serverUri, new Draft_6455(), null, 5000);
after calling sockect.connect(), the onOpen() is not called, but after 15 minutes,
the onError is called with following stack:
11-09 13:44:41.378 D/MssSocket( 6934): onError e: javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0x8f209c80: I/O error during system call, Connection timed out
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
11-09 13:44:41.378 D/MssSocket( 6934): at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:407)
It seems like that the connect timeout value which is set by constructor does not work.
Also, during the 15 minutes, i try closing the opening socket, but onClose() is not called.
How can I set the connect timeout correctly? THANKS
The text was updated successfully, but these errors were encountered:
Could it be the case that the timeout is "just" set at the socket but the connectLatch which gets awaited in connectBlocking does not get notified?
I'm experiencing the problem when the service I'm trying to connecting to is down. The application sets a timeout via the JSON configuration but WebSocketClient.connectBlocking does not return. Shouldn't a timeout from the socket connection also notify connectLatch so that connectBlocking() can actually return as advertised?
Using connectBlocking(long, TimeUnit) with the same timeout instead of connectBlocking() returns and allows my application to retry.
Describe what you would like to know or do
Precondition:
when i create socket with a connect timeout value 5 seconds as following:
super(serverUri, new Draft_6455(), null, 5000);
after calling sockect.connect(), the onOpen() is not called, but after 15 minutes,
the onError is called with following stack:
11-09 13:44:41.378 D/MssSocket( 6934): onError e: javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0x8f209c80: I/O error during system call, Connection timed out
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:324)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:629)
11-09 13:44:41.378 D/MssSocket( 6934): at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:591)
11-09 13:44:41.378 D/MssSocket( 6934): at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:407)
It seems like that the connect timeout value which is set by constructor does not work.
Also, during the 15 minutes, i try closing the opening socket, but onClose() is not called.
How can I set the connect timeout correctly? THANKS
The text was updated successfully, but these errors were encountered: