websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust

Home Page:http://websockets-rs.github.io/rust-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does the async connection end on an invalid connection?

hedgar2017 opened this issue · comments

The stream seems to fail if there is an invalid connection: Incoming stream
When one connection failed with some bytes remained on the stream, the entire listener failed and the only way to get out from this situation is binding a new one.
TcpListener does not do that. Bad connections are the TcpStream's responsibility, but not the TcpListener's.
What can I do here?