[zeromq-dev] Incoming data on multiple sockets and fairness
sustrik at 250bpm.com
Tue Mar 9 18:13:14 CET 2010
gonzalo diethelm wrote:
>> No. The other way round. Poll will be signaled every time there's a
>> message to read in the socket.
> Let me be obtuse and offer an example: I will be calling poll on two
> sockets, A and B. Say I call poll and block because there are no pending
> messages; then, A receives 100 messages; poll returns, I notice I can
> read off A and read 5 messages to process them; then I call poll again
> on the same sockets. What you are saying is that this second call to
> poll will return right away, even if no new messages have been received
> after the initial 100 messages, because there are still 95 pending
> messages for A. Is this correct?
More information about the zeromq-dev