Skip to content

Commit

Permalink
always have a read timeout on Follower sockets
Browse files Browse the repository at this point in the history
we want to timeout when waiting for acks, if the follower is
unresponsive
  • Loading branch information
carlhoerberg committed Jan 1, 2025
1 parent bb0e205 commit 863f0b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lavinmq/clustering/follower.cr
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module LavinMQ
validate_header!
authenticate!(password)
@id = @socket.read_bytes Int32, IO::ByteFormat::LittleEndian
@socket.read_timeout = nil
@socket.tcp_nodelay = true
@socket.read_buffering = false
@socket.sync = true # Use buffering in lz4
Expand Down

0 comments on commit 863f0b5

Please sign in to comment.