• Pieter Hintjens's avatar
    Problem: security tests block on zmq_send · 11175a33
    Pieter Hintjens authored
    The expect_bounce_fail () helper assumed that messages could always
    be sent. However in some cases zmq_send() blocks, due to there not
    being any outgoing pipe. This changed in 77f5f7, where previously
    there would be a pipe that kept trying to reconnect forever.
    
    Solution: use a send timeout and check for EAGAIN if sending failed.
    11175a33
testutil.hpp 8.33 KB