Skip to content

Commit

Permalink
reset ping interval on the server side as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jan 13, 2025
1 parent dcb14ed commit d1c9324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iroh-relay/src/server/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ impl Actor {
}
maybe_frame = self.stream.next() => {
self.handle_frame(maybe_frame).await.context("handle read")?;
// reset the ping interval, we just received a message
ping_interval.reset();
}
// First priority, disco packets
packet = self.disco_send_queue.recv() => {
Expand Down

0 comments on commit d1c9324

Please sign in to comment.