nanomsg: reset maximum receive msg size

This commit is contained in:
Alexey Rybalchenko
2016-05-27 10:14:15 +02:00
parent cc88339791
commit 253604344f
3 changed files with 6 additions and 1 deletions

View File

@@ -71,6 +71,11 @@ FairMQSocketNN::FairMQSocketNN(const string& type, const string& name, const int
}
}
#ifdef NN_RCVMAXSIZE
int rcvSize = -1;
nn_setsockopt(fSocket, NN_SOL_SOCKET, NN_RCVMAXSIZE, &rcvSize, sizeof(rcvSize));
#endif
// LOG(INFO) << "created socket " << fId;
}