Skip to content

Commit

Permalink
Add comment clarifying the io::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Mar 4, 2021
1 parent 9f97d7d commit 92ed1e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protocols/request-response/src/handler/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<TCodec> ResponseProtocol<TCodec> where TCodec: RequestResponseCodec
let request = read.await?;

self.request_sender.send((self.request_id, request)).map_err(|_| {
// if we can't even send the request, the handler has already been dropped and the connection closed
io::Error::from(io::ErrorKind::ConnectionAborted)
})?;

Expand Down

0 comments on commit 92ed1e4

Please sign in to comment.