mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Fix CID 169522 Unchecked return value
This commit is contained in:
parent
ec786dce03
commit
a9ac1fa91c
|
@ -82,7 +82,10 @@ FairMQSocketNN::FairMQSocketNN(const string& type, const string& name, const str
|
||||||
|
|
||||||
#ifdef NN_RCVMAXSIZE
|
#ifdef NN_RCVMAXSIZE
|
||||||
int rcvSize = -1;
|
int rcvSize = -1;
|
||||||
nn_setsockopt(fSocket, NN_SOL_SOCKET, NN_RCVMAXSIZE, &rcvSize, sizeof(rcvSize));
|
if (nn_setsockopt(fSocket, NN_SOL_SOCKET, NN_RCVMAXSIZE, &rcvSize, sizeof(rcvSize)) != 0)
|
||||||
|
{
|
||||||
|
LOG(ERROR) << "Failed setting NN_RCVMAXSIZE socket option, reason: " << nn_strerror(errno);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// LOG(INFO) << "created socket " << fId;
|
// LOG(INFO) << "created socket " << fId;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user