websocket icon indicating copy to clipboard operation
websocket copied to clipboard

conn.Close() actually doesn't Close !

Open dev-tathkarah opened this issue 9 months ago • 0 comments

I was facing an issue and i have reported it

https://github.com/gofiber/contrib/issues/698

i feels like i have to report the same here also as the underlying websocket connection is fasthttp/websocket

I am getting issue from : https://github.com/fasthttp/websocket/blob/82c80177346b0f5f86cad5f8d20d81e2ec89e70b/conn.go#L346-L354

The Close() is working and returning nil. So it should be closing the underlying connection also but the client(i was using postman) is still connected even after i have called Close() and client can still send the message into the socket connection.

Any assistance from your side is highly appreciated

dev-tathkarah avatar Jan 29 '25 12:01 dev-tathkarah