Defer a timeout fix until later

This commit is contained in:
teor 2021-01-05 13:10:29 +10:00 committed by Jane Lusby
parent d5cfd5ad5f
commit df1b0c8d58
1 changed files with 2 additions and 0 deletions

View File

@ -489,6 +489,8 @@ where
let _ =
tx.send(Err(PeerError::ConnectionClosed.into()));
} else if e.is_full() {
// TODO: wait for the sink to be ready, or wait for a timeout,
// then close the connection with an overloaded error (#1551)
let ClientRequest { tx, .. } = e.into_inner();
let _ = tx.send(Err(PeerError::Overloaded.into()));
} else {