Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/proxy/h2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ async fn do_ping_pong(
// drive_connection() exits first, no need to error again
return;
}
log::error!("ping error: {e}");
// If this was a broken pipe error, then the connection is already closed and we
// we can't ping it. This isn't an error, but more of a race condition we cannot
// catch.
if Some(std::io::ErrorKind::BrokenPipe) != e.get_io().map(|io| io.kind()) {
log::error!("ping error: {e}");
}

let _ = tx.send(());
return;
}
Expand Down