[prev in list] [next in list] [prev in thread] [next in thread]
List: zeromq-dev
Subject: Re: [zeromq-dev] ROUTER and blocking
From: Pieter Hintjens <ph () imatix ! com>
Date: 2012-09-22 5:48:47
Message-ID: CADL5_sghftjGce3MF_gHJJe4hHMZJNDnwSNCtwWmJ3qHQDjmqg () mail ! gmail ! com
[Download RAW message or body]
On Sat, Sep 22, 2012 at 2:23 AM, Justin Karneges <justin@affinix.com> wrote:
> When does a write to ROUTER block? Is it if the identified connection has a
> full queue?
ROUTER sockets *drop* messages when the HWM is reached.
> Also, if the identified connection does not exist, I assume the socket drops
> the message rather than blocking until that connection appears?
Also, yes.
In fact dropping messages that can't be sent safely is a sane
response. But not by itself. You have to add some form of credit based
flow control, which can be fairly simple.
There's an older article on this here: http://unprotocols.org/blog:15
I've also been working on Chapter 6 of the Guide which goes into
detail on this: http://zguide.zeromq.org/page:all#toc129
-Pieter
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic