Connection timeout
Hi,
Our infrastructure behaves oddly these times and I faced a strange issue while trying to connect:
2016-11-14T16:08:02,459+01:00 INFO [main] (JdkClientContainer.java:177) Connecting to 'wss://activation.cc.connect2.opentouch.com:443/' via proxy 'HTTP @ /192.168.254.49:8080'.
2016-11-14T16:12:47,707+01:00 DEBUG [ tyrus-jdk-client-4] (ClientFilter.java:234) Connection has been closed by the server
Do you know how I can decrease timeout? I can't afford the user waiting such a long time... By the way the connection issue is not on the proxy side, I can connect successfully on another server.
Thanks
Comments (7)
-
repo owner -
repo owner I am unable to test it, because of I don't have the infrastructure like you have, but I've tried to fix it with this:
I've uploaded a new version
0.7.3-SNAPSHOT
to Maven's Snapshot Repository: https://oss.sonatype.org/content/repositories/snapshots/rocks/xmppI'd be glad, if you are able to give it a try.
-
reporter Unfortunately it doesn't work. I found the blocking call being in TransportFilter:
socketChannel = AsynchronousSocketChannel.open(channelGroup);
And according to StackOverflow it's not possible to set a timeout here.
I suggest to close this issue...
-
reporter Closing the issue. By the way any date for a 0.7.3 release?
-
reporter - changed status to wontfix
-
repo owner No estimated release date yet, but I guess there are enough bug fixes to release it within the next few weeks.
-
reporter Great! Thanks.
- Log in to comment
Hi,
obviously there's no official API for a timeout yet: https://java.net/jira/browse/WEBSOCKET_SPEC-234
Appearently, we could use an implementation feature of Tyrus, namely this one: https://tyrus.java.net/apidocs/1.10/org/glassfish/tyrus/client/ClientProperties.html#HANDSHAKE_TIMEOUT
But the default timeout is already only 30s. Seems like you are waiting > 4 minutes.