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 downloading a large file on slow/unstable network, the tunnel is closed after about 2 minutes. From the client log, ping check didn't get pong, and the client closed the tunnel after several times ping checks.
To Reproduce
server: sudo wstunnel server --log-lvl DEBUG wss://[::]:443
I got the chance to look at it, and sadly I can't do anything about it.
In the websocket protocol, there is no QoS/out of band notification for the control messages.
So the client must first dequeue all the messages before getting the ping, and flush all the messages to the network for the pong to be sent to the server. Which on a slow connection take a lot of time.
The only way I see, beside disabling ping as you have done, it to reduce the buffer of the tcp stack at OS level to reduce the latency. it will force to have a small buffer queue.
@erebe Thank you so much for looking into it. It sounds like a limitation in this case. Yeah, I guess let's live with it. So far, disabling ping worked great for me.
Describe the bug
When downloading a large file on slow/unstable network, the tunnel is closed after about 2 minutes. From the client log, ping check didn't get pong, and the client closed the tunnel after several times ping checks.
To Reproduce
Expected behavior
Downloading with slow network shouldn't be closed.
Your wstunnel setup
Desktop (please complete the following information):
Additional context
Disabling the ping check using
--websocket-ping-frequency-sec 0
solved my issue. I am opening the issue for the ping check failure.The text was updated successfully, but these errors were encountered: