You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use tokio-tungstenite to run a server, accepting a new connection blocks the acceptor loop until the websocket handshake is complete. This opens a DOS vector where malicious clients can prevent other clients from connecting by hogging the acceptor loop.
The solution here seems to be spawning a new tokio task to finish accepting a connection after the TcpListener connects.
The text was updated successfully, but these errors were encountered:
When you use
tokio-tungstenite
to run a server, accepting a new connection blocks the acceptor loop until the websocket handshake is complete. This opens a DOS vector where malicious clients can prevent other clients from connecting by hogging the acceptor loop.The solution here seems to be spawning a new tokio task to finish accepting a connection after the
TcpListener
connects.The text was updated successfully, but these errors were encountered: