Open sergeysolovev opened 3 months ago
Hello, I experience a similar problem. WebSocket Server throws an "error" event "No response from ping frame" and then a "close" event is called. But I can still see the socket open on netstat. Client side (not implemented with Deno) nothing happens, the connection appear intact and the server still replies to websocket ping packets. The client can send data to the socket but on server side the "message" event is not called anymore.
Version: Deno 1.45.5
Steps: start the server, start the client, wait for the client to call method
close
. Check the connections, I usess -atn | grep 3333
on linux (can uselsof -i TCP:3333
on macos). I still see the tcp connection established and it’s still there several minutes after.This looks unexpected to me. My use case - lets say there is some server issue so I wasn’t able to open a ws connection after a few seconds. I would keep trying to close and open another ws connection (with some delay). But that would keep leaking TCP connections.
Repro scripts
Server - establishes TCP connections and prints received data to stdout, does not implement web socket protocol
Client - opens a websocket connection and closes it after 1 second regardless of the result.