mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 09:12:30 +02:00
Make pipeline/reqrep tests try tcp:// endpoints.
The inproc:// endpoints sometimes use different code paths so testing with regular tcp:// endpoints as well can show different issues.
This commit is contained in:
@@ -186,4 +186,15 @@ void s_recv_seq (void *socket, ...)
|
||||
zmq_msg_close (&msg);
|
||||
}
|
||||
|
||||
|
||||
// Sets a zero linger period on a socket and closes it.
|
||||
void close_zero_linger (void *socket)
|
||||
{
|
||||
int linger = 0;
|
||||
int rc = zmq_setsockopt (socket, ZMQ_LINGER, &linger, sizeof(linger));
|
||||
assert (rc == 0);
|
||||
rc = zmq_close (socket);
|
||||
assert (rc == 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user