Shorten the queue

This commit is contained in:
2020-04-22 10:52:31 +02:00
parent 9fb402b53d
commit 95f40b1ac8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ int main (int argc, char *argv[]) {
int status = 0;
int sndhwm = 10;
int sndhwm = 1;
status += zmq_setsockopt(socket, ZMQ_SNDHWM, &sndhwm, sizeof(sndhwm));
int linger_ms = 10000;
int linger_ms = 0;
status += zmq_setsockopt(socket, ZMQ_LINGER, &linger_ms, sizeof(linger_ms));
//status += zmq_setsockopt(socket, ZMQ_SNDTIMEO, 1000);