Wait forever until the writer gets all the packets

This commit is contained in:
2020-05-08 11:49:56 +02:00
parent 30a267bfdd
commit ed2bcab1ba
+1 -1
View File
@@ -227,7 +227,7 @@ int main (int argc, char *argv[]) {
if (zmq_setsockopt(socket, ZMQ_SNDHWM, &sndhwm, sizeof(sndhwm)) != 0)
throw runtime_error(strerror (errno));
const int linger_ms = 0;
const int linger_ms = -1;
if (zmq_setsockopt(socket, ZMQ_LINGER, &linger_ms, sizeof(linger_ms)) != 0)
throw runtime_error(strerror (errno));