[zeromq-dev] MSG_DONTWAIT on AIX/HP-UX
George Neill
georgen at neillnet.com
Tue Nov 11 16:44:13 CET 2008
Hi Tamara,
I hope you don't mind I have started a new thread since we have varied
off of the cmake subject.
On Tue, Nov 11, 2008 at 5:14 AM, Tamara Kustarova <kustarova at fastmq.com> wrote:
> Hi,
>
> because MSG_DONTWAIT doesn't exist on every system, currently we use
> fcntl function to set socket to nonblocking mode. It can be found in
> svn, revision 610. It uses O_NONBLOCK and it may not work correctly on
> every aix version, although it is defined there. We don't have aix, so
> we can't test it, but if you come across any bugs, please, let us know.
Unless I missed it, I believe this is a different path through the
code. In ysocketpair.hpp, there's a socketpair/recv call, the
MSG_DONTWAIT flag from the recv call is the issue on AIX/HP-UX. I
believe the socketpair() (r,w) descriptors should become non blocking
as well. By doing this the MSG_DONTWAIT flag can be removed from the
recv call.
TIA,
George.
More information about the zeromq-dev
mailing list