Skip to content

Commit

Permalink
Reduce number of CONNECTION_CLOSE frames
Browse files Browse the repository at this point in the history
If this makes ngtcp2 happy, refactor into separate PR.
  • Loading branch information
larseggert committed Apr 9, 2024
1 parent 79306bc commit 1999874
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neqo-bin/src/client/http09.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ impl super::Client for Connection {
where
S: AsRef<str> + std::fmt::Display,
{
self.close(now, app_error, msg);
if !self.state().closed() {
self.close(now, app_error, msg);
}
}

fn is_closed(&self) -> Option<ConnectionError> {
Expand Down

0 comments on commit 1999874

Please sign in to comment.