-
Notifications
You must be signed in to change notification settings - Fork 267
Ignore connections that have no peer_addr #500
Copy link
Copy link
Closed
Description
If there's no peer_addr most likely the connection has been dropped, I think in this case we should ignore the socket.
Lines 87 to 93 in 4418476
| let listener = tokio::net::TcpListener::bind(&address)?; | |
| let connections = SuspendableStream::new(listener.incoming()); | |
| let server = connections.map(move |socket| { | |
| let peer_addr = socket.peer_addr().expect("Unable to determine socket peer address"); | |
| trace!(target: "tcp", "Accepted incoming connection from {}", &peer_addr); | |
| let (sender, receiver) = mpsc::channel(65536); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels