[zeromq-dev] memory leak in PUB/SUB sockets
Martin Sustrik
sustrik at 250bpm.com
Fri Oct 1 16:39:40 CEST 2010
Sven,
> that reminds me of my recently reported problem, that poll returns wrong
> codes.
> I thought, that it's been completely my fault, because I accidentially
> called poll() twice on a socket before recv()ing, BUT:
> the second call to poll() should still tell me, that data is availably,
> which does not happen (at least for SUB). Instead, it behaves like this:
> poll(); ==> blocks until msg arrives, then returns, telling "I have
> something"
> poll(); ==> immediately returns(correct!), but telling "(11) ressource
> not available", which is wrong
what's the return code from zmq_poll in the above? -1?
If so, can you provide a minimal test case?
> recv(); ==> correctly deliveres the arrived message
Thanks!
Martin
More information about the zeromq-dev
mailing list