snapview / tokio-tungstenite

Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation
MIT License
1.88k stars 236 forks source link

Fix poll_flush on closed connection #281

Closed CBenoit closed 1 year ago

CBenoit commented 1 year ago

Flushing when there is nothing to send anymore should succeed.

Relevant code in tungstenite crate code: https://github.com/snapview/tungstenite-rs/blob/e5efe537b87a6705467043fe44bb220ddf7c1ce8/src/protocol/mod.rs#L390