[zeromq-dev] Does ZMQ handle tcp-RST?

artemv zmq artemv.zmq at gmail.com
Sat Dec 14 21:26:25 CET 2013


Ok.   I set HWM to 0.  Launched DEALER (my client) , and ROUTER (my
server).  Client sends "hello" , server replies with "world".  Laucnhed
them in separate processes, looked
at logs, seen some chatting, hello-world-hello-world , and so on.   And
then I decided to kill server process (on windows in cmdline:   taskkill /f
/pid  <<PID>>).

I expected that I would see the warnings produced by my application (since
appl. logic is checking the result of .send(byte[])  function).  But
.send()  is  always good.
So, with HWM=0  on socket   and gotten   RST,   .send()  function  still
tells me that send  was successfull.     Isn't this is a bug ?


2013/12/13 Pieter Hintjens <ph at imatix.com>

> On Fri, Dec 13, 2013 at 9:14 PM, Justin Karneges <justin at affinix.com>
> wrote:
>
> > If you want to prevent queuing in all cases, set HWM to 0.
>
> This will not actually prevent all queuing, just remove buffering in
> ZeroMQ. You'll still get buffering in TCP and on the network itself.
>
> If you want to remove all queuing completely, you have to switch to a
> synchronous REQ/REP model, which is nasty. Better, use a credit based
> flow control system to manage precisely the total amount of buffering.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131214/80387121/attachment.htm>


More information about the zeromq-dev mailing list