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:
Martin Sustrik
2011-06-19 09:22:11 +02:00
parent 4b60023b96
commit 5b77a41eaf
3 changed files with 4 additions and 18 deletions

View File

@@ -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.