[zeromq-dev] [PATCH] Fixed OOM handling while writing to a pipe
Paul Colomiets
paul at colomiets.name
Thu May 19 23:08:41 CEST 2011
Hi,
Here is the next patch in OOM bug fixing series.
There are currently two problems of this patch:
In case of OOM zmq_send will return EAGAIN, because there no way to
return other error from pipe (writer_t). Do you think it's worth fixing?
This
basically means writer_t::write should return 0 and set errno instead
of returning bool. (Or should it return ENOMEM directly?)
Sometimes write fail even if `more` is set on previous message, this
will trigger some assertions in zeromq code (they will be fixed in the
future patches), and probably can trigger assertions in user code.
But as currently nobody expects zeromq to work under OOM,
it's probably fine to live with this for some time.
--
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110520/f1da3643/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-OOM-handling-while-writing-to-a-pipe.patch
Type: application/octet-stream
Size: 4499 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110520/f1da3643/attachment.obj>
More information about the zeromq-dev
mailing list