[rabbitmq-discuss] Socket errors and connections not closing
celldee
celldee at gmail.com
Wed Aug 12 14:43:19 BST 2009
Thanks for reminding me about the symmetric nature of the heartbeat
logic. It seems I have more work to do :)
Regards,
Chris
On Aug 12, 8:17 am, Matthias Radestock <matth... at lshift.net> wrote:
> 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.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttp://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list