[zeromq-dev] [PATCH] Fix assertion when swap fills up

Martin Sustrik sustrik at 250bpm.com
Wed Dec 15 14:21:55 CET 2010

Hi Mikko,

I've done some cleanup in the patch. Namely I've removed full() method 
from swap_t and left fits(msg) as the only means to check whether swap 
is writeable. Second, I've removed pipe_t::check_write() method and left 
only pipe_t::check_write(msg) method. Third, I've modified the 
implementation of zmq_poll internals so that it checks whether zero-byte 
message can be written.

Please, check the patch and let me know whether it works for you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixes-assertion-on-pipe.cpp-237-when-swap-fills-up.patch
Type: text/x-diff
Size: 4620 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101215/308d3ed3/attachment.patch>

More information about the zeromq-dev mailing list