• Martin Sustrik's avatar
    Outstanding requests dropped when requester dies (issue 190) · d1373792
    Martin Sustrik authored
    So far the requests in req/rep pattern were delivered to and processed
    by worker even though the original requester was dead. Thus,
    the worker processing replies with noone to deliver results to.
    This optimisation drops requests in two situations:
    
    1. Queued inbound requests in XREP socket when peer disconnects.
    2. Queued outbound requests in XREQ when socket is closed.
    Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
    d1373792
pipe.hpp 6.94 KB