[zeromq-dev] Resource Temporarily Unavailable [libzmq 3.1.x latest, all sockets]
Amr Ali
amr.ali.cc at gmail.com
Mon Nov 28 02:38:28 CET 2011
I've attached a test case where it create two PAIR sockets and attempts to send
a message from socket to another over INPROC, however it never gets past that..
I always get "Resource temporarily unavailable" with rc == 8 and zmq_errno() == 11.
Here's what I've tried to mitigate that issue thinking that it might be the case
where the I/O threads don't have enough time to connect and send the message
(which if it was the case, which is not, should be handled internally).
* I've added sleep(1) before zmq_sendmsg(). [no effect]
* Added sleep(1) between bind() and connect(). [no effect]
* Done both above. [no effect]
* Applied the above for TCP. [no effect]
* Applied all of the above for most socket types (e.g. REQ/REP, PUB/SUB,
PUSH/PULL). [no effect]
Notes:
This is done against HEAD of libzmq git repository.
Compile line: gcc -I/libzmq/include -L/libzmq/src/.libs pair.c -o pair -lzmq &&
LD_LIBRARY_PATH=/libzmq/src/.libs ./pair
Please investigate and/or advise.
--
Amr Ali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pair.c
Type: text/x-csrc
Size: 773 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111128/54de70ba/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111128/54de70ba/attachment.sig>
More information about the zeromq-dev
mailing list