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
When connecting to a web socket server, the timeout interval is being ignored, since the "disconnect" callback is only triggered after 75 seconds, instead of the timeout value that I define (I've tried several values like 5 or 10 seconds, but I get the same result).
In order to test the timeout, I'm disabling the WiFi in my iPhone before trying to establish a connection with a web socket server.
Here's the code snippet I'm using when defining the url timeout:
I've also tried to implement my own login timeout logic, using a dispatch source timer, and by forcing the web socket to disconnect when the timeout is reached. However, I'm not able to interrupt an on-going connection attempt when forcing the web socket to disconnect:
I'm experiencing the exact same issue on 3.0.4. I have my own timeout which forces the connection to be shut down. Using webSocket.disconnect(forceTimeout: TimeInterval(0)) freezes the UI for more than a minute. Odd thing is, if I use webSocket.disconnect(forceTimeout: nil) I manage to shut down and reestablish the connection.
Do you have any thoughts on what the issue might be? Can you confirm that 3.0.4 includes the fix?
Hi,
I'm using version 3.0 with Swift 4.
When connecting to a web socket server, the timeout interval is being ignored, since the "disconnect" callback is only triggered after 75 seconds, instead of the timeout value that I define (I've tried several values like 5 or 10 seconds, but I get the same result).
In order to test the timeout, I'm disabling the WiFi in my iPhone before trying to establish a connection with a web socket server.
Here's the code snippet I'm using when defining the url timeout:
Is there anything I could be doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: