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

Attachment: 0001-Fixed-OOM-handling-while-writing-to-a-pipe.patch
Description: Binary data

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to