Skip to content

Commit

Permalink
doc(read_handler): add amqp spec link for max heartbeat
Browse files Browse the repository at this point in the history
Co-authored-by: gftea <[email protected]>
  • Loading branch information
RoloEdits and gftea authored Oct 26, 2024
1 parent 4fffeeb commit 27563e5
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 @@ -21,6 +21,7 @@ use super::{

/////////////////////////////////////////////////////////////////////////////

/// After two missed heartbeats, the peer is considered to be unreachable according to [spec](https://www.rabbitmq.com/docs/heartbeats#heartbeats-interval)
const MAX_HEARTBEAT_MISS: u64 = 2;

pub(crate) struct ReaderHandler {
Expand Down

0 comments on commit 27563e5

Please sign in to comment.