[zeromq-dev] [PATCH] Minor patch for xrep_t::xhas_in()

Tore Halvorsen tore.halvorsen at gmail.com
Thu May 5 15:56:33 CEST 2011


I'm getting some errors when shutting down my program right now -
looks like the problem is in
xrep_t::xhas_in(). I can enter this function when current_in >= inpipes.size().
Now, I'm not quite sure what this function does, so the contition
could be an indication
that something else is wrong, anyway...

There was a check for this boundry condition at the end of the loop
and moving it to the
start of it. Seems to work for me - attached a patch if this looks
like the correct approach.

Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul]
<demo> 2011 Tore Halvorsen || +052 0553034554
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Encountered-error-in-zmq-xrep_t-xhas_in.patch
Type: application/octet-stream
Size: 1319 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110505/7665a5fc/attachment.obj>

More information about the zeromq-dev mailing list