mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-13 15:43:53 +01:00
Wait forever until the writer gets all the packets
This commit is contained in:
1 parent
30a267bfdd
commit
ed2bcab1ba
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user