mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 18:42:23 +02:00
Adjust hwm size
This commit is contained in:
@@ -93,7 +93,8 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
auto socket = zmq_socket(ctx, ZMQ_PUSH);
|
||||
int sndhwm = REPLAY_BLOCK_SIZE;
|
||||
// The +1 is important so we pre-load the next chunk.
|
||||
int sndhwm = REPLAY_BLOCK_SIZE + 1;
|
||||
if (zmq_setsockopt(socket, ZMQ_SNDHWM, &sndhwm, sizeof(sndhwm)) != 0) {
|
||||
throw runtime_error(strerror (errno));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user