[zeromq-dev] Heartbeats and/or keep-alives

Steven McCoy steven.mccoy at miru.hk
Thu Oct 14 08:46:39 CEST 2010


On 14 October 2010 13:23, Pieter Hintjens <ph at imatix.com> wrote:

> Ack on your points.  KeepAlive / Heartbeating belongs in the tcp://
> transport layer, doing this at the application level does not appear
> to be the best approach.  But it's the workaround for now.  You can
> make it work better by only sending heartbeats when there is no other
> data to send, i.e. when the sender is idle.
>
>
The alternative is to close the TCP connection after idling for a period of
time.  You'll get hit on latency of the next message but it's a easier
implementation.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101014/cc366a15/attachment.htm>


More information about the zeromq-dev mailing list