[zeromq-dev] [PATCH] Fix assertion when swap fills up
Mikko Koppanen
mikko.koppanen at gmail.com
Mon Dec 13 23:23:54 CET 2010
Hello,
the following patch should fix assertion in pipe.cpp when swap fills
up. It adds swap::fits() method, which checks if the message actually
fits into swap rather than just checking if swap is full.
It seems that there was a bug in swap::full() as it was checking if
buffer_space == 1. After this the swap behavior should be consistent
with HWM behavior.
--
Mikko Koppanen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixes-assertion-on-pipe.cpp-237-when-swap-fills-up.patch
Type: application/octet-stream
Size: 3827 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101213/2e58b50c/attachment.obj>
More information about the zeromq-dev
mailing list