diff options
author | Martin Lucina <martin@lucina.net> | 2012-02-16 10:01:53 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:01:53 +0900 |
commit | 486a4471d860bc4e1f733fb7b4dda6e28d1ed8bc (patch) | |
tree | f40145f09c7a9bf57ec412c2710a1ff28f93bf3a /devices | |
parent | 4a7aad06d95701cf232198093ce396dcdbb53e5b (diff) |
Fix pgm_receiver.cpp: zmq_assert (pending_bytes == 0) (LIBZMQ-205)
This patch fixes the problem described in LIBZMQ-205. The assertion itself
is probably caused by previously queued POLLIN events arriving after POLLIN
has been disabled on the socket.
The following additional bugs have been fixed as part of debugging this
problem:
- pgm_receiver_t does not flush messages written to the session in all
cases which can lead to a stalled reader. Add calls to session->flush ()
in the appropriate places.
- ensure to restart polling when a pending message is flushed in
activate_in ().
Signed-off-by: Martin Lucina <martin@lucina.net>
Diffstat (limited to 'devices')
0 files changed, 0 insertions, 0 deletions