Commit d33c823f authored by Matt Joras's avatar Matt Joras Committed by Facebook GitHub Bot

Fix recvmmsg wrapper.

Summary: It needs to set the msg_len, otherwise the caller doesn't know how long the datagram is.

Reviewed By: yangchi

Differential Revision: D21512788

fbshipit-source-id: f24c2bd9e86acf93ebf12c48afcf7658c8e8d54e
parent efb57da2
......@@ -336,6 +336,8 @@ int recvmmsg(
return static_cast<int>(i);
}
return static_cast<int>(ret);
} else {
msgvec[i].msg_len = ret;
}
}
return static_cast<int>(vlen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment