Skip to content

Commit

Permalink
Test for issue zeromq#1690 (ZMQ_REQ_RELAXED)
Browse files Browse the repository at this point in the history
Current ZMQ_REQ_RELAXED test improvement to check that pipes are not closed
after executing two send() in a row with no recv() in between.
  • Loading branch information
FredTreg committed Jan 3, 2016
1 parent c30676f commit 9bdb605
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_req_relaxed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ int main (void)
s_send_seq (rep [4], "GOOD", SEQ_END);
s_recv_seq (req, "GOOD", SEQ_END);

// Case 3: Check issue #1690. Two send() in a row should not close the
// communication pipes. For example pipe from req to rep[0] should not be
// closed after executing Case 1. So rep[0] should be the next to receive,
// not rep[1].
s_send_seq(req, "J", SEQ_END);
s_recv_seq(rep [0], "J", SEQ_END);


close_zero_linger (req);
for (size_t peer = 0; peer < services; peer++)
Expand Down

0 comments on commit 9bdb605

Please sign in to comment.