coder / websocket

Minimal and idiomatic WebSocket library for Go
ISC License
3.81k stars 286 forks source link

hotfix: close received after close #487

Closed fogrye closed 1 week ago

fogrye commented 1 week ago

waitCloseHandshake waits for client to respond with close frame but handleControl receives it and writes close again which may cause errors for some clients.

This is dump solution but it works in my case. I believe it can be done better, pls check it out.

Fixes: #448

fogrye commented 1 week ago

I noticed more clever solution so ignore this one