Skip to content

Commit

Permalink
reset heartbeat miss counter
Browse files Browse the repository at this point in the history
  • Loading branch information
gftea committed Jun 14, 2024
1 parent 03e05a3 commit dd248fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amqprs/src/net/reader_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ impl ReaderHandler {
res = self.stream.read_frame() => {
// any frame can be considered as heartbeat
expiration = time::Instant::now() + time::Duration::from_secs(max_interval);
heartbeat_miss = 0;
#[cfg(feature="traces")]
trace!("server heartbeat deadline is updated to {:?}", expiration);

Expand Down

0 comments on commit dd248fa

Please sign in to comment.