[zeromq-dev] Detecting sending failure due to over-full queue
Pieter Hintjens
ph at imatix.com
Tue Oct 5 16:40:12 CEST 2010
On Tue, Oct 5, 2010 at 4:35 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:
> - A client open a XREQ socket and connects to a server (REP/XREP).
> - It set the water mark to 5.
> - It sends 5 requests using non-block. All of them fail (so they are
> queued) in the XREQ outgoing queue.
> - When it tries to send a new request zqm_send should reply EAGAIN
> (the message couldn't be sent neither queued, am I right?).
According to the docs, yes,if 'fail' means 'could not be sent'.
> My question is: how can the client determine that the request couldn't
> be sent due to over-full queue in its XREQ socket?
Uhm, errno == EAGAIN?
-Pieter
--
-
Pieter Hintjens
iMatix - www.imatix.com
More information about the zeromq-dev
mailing list