userver icon indicating copy to clipboard operation
userver copied to clipboard

Support request for close from websocket client

Open Beshkent opened this issue 1 year ago • 1 comments

My python client uses WebSocketClientProtocol. And if the client calls close(), then it will hang for 30 seconds (timeout) and only then finishes closing, even though my server calls WebSocketConnection::Close(). If I call WebSocketConnection::Recv, then I can detect the this closing request of the client, but calling WebSocketConnection::Close() as the answer also doesn't help. On the other hand, if I call WebSocketConnection::Recv and client doesn't send anything (e.g. close request), then my server will hang in Direction::TryHandleError (in line if(!poller_.Wait)

Beshkent avatar Dec 20 '23 20:12 Beshkent

Can you send us the minimal reproducer? pytest test would be ideal.

segoon avatar Dec 25 '23 16:12 segoon