Fix a bug in nanomsg implementation when sending empty messages.

This commit is contained in:
Alexey Rybalchenko
2015-09-08 12:07:12 +02:00
committed by Mohammad Al-Turany
parent f13bb5995d
commit 35ff6c8fc8
3 changed files with 16 additions and 5 deletions

View File

@@ -143,6 +143,7 @@ int FairMQSocketNN::Receive(FairMQMessage* msg, const string& flag)
{
fBytesRx += rc;
++fMessagesRx;
msg->Rebuild();
msg->SetMessage(ptr, rc);
static_cast<FairMQMessageNN*>(msg)->fReceiving = true;
}