• Martin Lucina's avatar
    Fix pgm_receiver.cpp: zmq_assert (pending_bytes == 0) (LIBZMQ-205) · c34a1443
    Martin Lucina authored
    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: 's avatarMartin Lucina <martin@lucina.net>
    c34a1443
Name
Last commit
Last update
builds Loading commit data...
doc Loading commit data...
foreign/openpgm Loading commit data...
include Loading commit data...
perf Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
configure.in Loading commit data...
version.sh Loading commit data...