Commit 6bdedcbc authored by Martin Hurton's avatar Martin Hurton

Merge pull request #1049 from hintjens/master

Minor fixes
parents a1fbd973 4b67919f
......@@ -3,8 +3,7 @@ zmq_proxy_steerable(3)
NAME
----
zmq_proxy_steerable - start built-in 0MQ proxy with PAUSE/RESUME/TERMINATE
control flow
zmq_proxy_steerable - built-in 0MQ proxy with control flow
SYNOPSIS
......
......@@ -130,12 +130,13 @@ expect_bounce_fail (void *server, void *client)
assert (zmq_errno () == EAGAIN);
// Send message from server to client to test other direction
// If connection failed, send may block, without a timeout
rc = zmq_setsockopt (server, ZMQ_SNDTIMEO, &timeout, sizeof (int));
assert (rc == 0);
rc = zmq_send (server, content, 32, ZMQ_SNDMORE);
assert ((rc == 32) || ((rc == -1) && (errno == EAGAIN)));
assert (rc == 32 || (rc == -1 && zmq_errno () == EAGAIN));
rc = zmq_send (server, content, 32, 0);
assert ((rc == 32) || ((rc == -1) && (errno == EAGAIN)));
assert (rc == 32 || (rc == -1 && zmq_errno () == EAGAIN));
// Receive message at client side (should not succeed)
rc = zmq_setsockopt (client, ZMQ_RCVTIMEO, &timeout, sizeof (int));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment