Tweak buffer and add some poor mans statistics

This commit is contained in:
2020-04-22 17:00:29 +02:00
parent 72ae0207a4
commit 3c1a057ffa
2 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ int main (int argc, char *argv[]) {
auto ctx = zmq_ctx_new();
auto socket = zmq_socket(ctx, ZMQ_PUSH);
int sndhwm = 1;
int sndhwm = 10;
if (zmq_setsockopt(socket, ZMQ_SNDHWM, &sndhwm, sizeof(sndhwm)) != 0) {
throw runtime_error(strerror (errno));
};