[zeromq-dev] [PATCH] Minor patch for xrep_t::xhas_in()
Tore Halvorsen
tore.halvorsen at gmail.com
Fri May 6 14:04:36 CEST 2011
On Fri, May 6, 2011 at 1:04 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> On 05/06/2011 12:57 PM, Tore Halvorsen wrote:
>
>> By the look of it, maybe current_in does not account
>> for all socket disconnects?
>
> Yeah. That's the most probable explanation.
Ok, here we go.
This reproduces the issue for me, though not every time.
Putting
assert(inpipes.empty() || inpipes.size() > current_in);
at the beginning of xhas_in has a tendency to show the problem
slightly better than a subscript out of range.
--
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: main.cpp
Type: text/x-c++src
Size: 3360 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110506/d843ff23/attachment.cpp>
More information about the zeromq-dev
mailing list