mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Merge pull request #2650 from sigiesec/connection-close-event-workaround
Problem: sporadic failure in test_curve_security_with_null_client_credentials
This commit is contained in:
commit
32085870df
@ -471,9 +471,11 @@ void test_curve_security_with_null_client_credentials (void *ctx,
|
|||||||
close_zero_linger (client);
|
close_zero_linger (client);
|
||||||
|
|
||||||
#ifdef ZMQ_BUILD_DRAFT_API
|
#ifdef ZMQ_BUILD_DRAFT_API
|
||||||
int event = get_monitor_event (server_mon, NULL, NULL, 0);
|
int err;
|
||||||
|
int event = get_monitor_event (server_mon, &err, NULL, 0);
|
||||||
|
|
||||||
assert (event == ZMQ_EVENT_HANDSHAKE_FAILED_ZMTP);
|
assert (event == ZMQ_EVENT_HANDSHAKE_FAILED_ZMTP
|
||||||
|
|| (event == ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL && err == EPIPE));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,6 +492,8 @@ void test_curve_security_with_plain_client_credentials (void *ctx, void *server)
|
|||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
expect_bounce_fail (server, client);
|
expect_bounce_fail (server, client);
|
||||||
close_zero_linger (client);
|
close_zero_linger (client);
|
||||||
|
|
||||||
|
// TODO add assertion here as in test_curve_security_with_null_client_credentials
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_curve_security_unauthenticated_message (char *my_endpoint,
|
void test_curve_security_unauthenticated_message (char *my_endpoint,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user