[zeromq-dev] zmq::poll timeout returns immediately on MacOS/X 10.5
Matt Weinstein
mattweinstein at gmail.com
Thu Jun 10 22:00:40 CEST 2010
Folks,
I inserted a zmq::poll into the client side of the sample client/
server application --
...
zmq_pollitem_t pi;
pi.socket = s;
pi.fd = 0;
pi.events = ZMQ_POLLIN;
pi.revents = 0;
assert(zmq::poll(&pi, 1, TIMEOUT) == 0);
// inserted before
s.recv (&reply);
...
If TIMEOUT is set to -1 this waits for the response, any other value
returns immediately.
Am I missing something?
I started digging through the timer queue code, but I'm wondering if
this is just a Mac OS/X specific issue?
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100610/20c407f8/attachment.htm>
More information about the zeromq-dev
mailing list