mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 17:30:47 +02:00
Problem: lack test case for large stream messages
Solution: added to test_stream.cpp
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "../include/zmq.h"
|
||||
#include "../src/stdint.hpp"
|
||||
#include "platform.hpp"
|
||||
#include "../src/platform.hpp"
|
||||
|
||||
// This defines the settle time used in tests; raise this if we
|
||||
// get test failures on slower systems due to binds/connects not
|
||||
@@ -90,7 +90,7 @@ bounce (void *server, void *client)
|
||||
rc = zmq_getsockopt (server, ZMQ_RCVMORE, &rcvmore, &sz);
|
||||
assert (rc == 0);
|
||||
assert (!rcvmore);
|
||||
|
||||
|
||||
// Send two parts back to client
|
||||
rc = zmq_send (server, buffer, 32, ZMQ_SNDMORE);
|
||||
assert (rc == 32);
|
||||
@@ -233,7 +233,7 @@ void s_recv_seq (void *socket, ...)
|
||||
va_list ap;
|
||||
va_start (ap, socket);
|
||||
const char * data = va_arg (ap, const char *);
|
||||
|
||||
|
||||
while (true) {
|
||||
int rc = zmq_msg_recv (&msg, socket, 0);
|
||||
assert (rc != -1);
|
||||
|
||||
Reference in New Issue
Block a user