userver
                                
                                
                                
                                    userver copied to clipboard
                            
                            
                            
                        Support request for close from websocket client
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)
Can you send us the minimal reproducer? pytest test would be ideal.