mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-11 02:00:49 +02:00
Throughput tests fixed.
Introduction of subscription forwarding have broken throughput tests. This patch changes the pattern used in the tests to PUSH/PULL. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -52,18 +52,12 @@ int main (int argc, char *argv [])
|
||||
return -1;
|
||||
}
|
||||
|
||||
s = zmq_socket (ctx, ZMQ_SUB);
|
||||
s = zmq_socket (ctx, ZMQ_PULL);
|
||||
if (!s) {
|
||||
printf ("error in zmq_socket: %s\n", zmq_strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
rc = zmq_setsockopt (s, ZMQ_SUBSCRIBE , "", 0);
|
||||
if (rc != 0) {
|
||||
printf ("error in zmq_setsockopt: %s\n", zmq_strerror (errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Add your socket options here.
|
||||
// For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
|
||||
|
||||
|
Reference in New Issue
Block a user