[rabbitmq-discuss] Socket errors and connections not closing
Matthias Radestock
matthias at lshift.net
Wed Aug 12 08:17:06 BST 2009
Chris,
Chris Duncan wrote:
> Mark, I have recently added a heartbeat parameter to the Client#new
> method in Bunny on GitHub (master branch) in preparation for the next
> release. As I understand it (correct me if I'm wrong Matthias), when
> the client specifies a heartbeat interval in the Connection::TuneOk
> method, the server sends heartbeat frames to the client and the client
> has to either send a heartbeat or other type of frame back to the server
> within 2 or so heartbeat intervals. If the client fails to respond in
> time then the server closes the connection and socket.
Yes, that's right. Note that the heartbeat logic is completely symmetric
- if the client doesn't receive a frame (heartbeat or ordinary) within
the heartbeat interval (* 2, to be safe) then it too should close the
connection.
Matthias.
More information about the rabbitmq-discuss
mailing list