In the portability implementation of sendmsg return a partial message send if it...
authorChristopher Dykes <cdykes@fb.com>
Mon, 31 Oct 2016 18:59:37 +0000 (11:59 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Mon, 31 Oct 2016 19:08:34 +0000 (12:08 -0700)
commit210b566437cfaf9b5ddeaebe8efddcf456285638
treef2da21b08ac642db7ab81b56f948a2f90faec941
parent7aa24338827eace3302af2b3fa2d34d262cc99e6
In the portability implementation of sendmsg return a partial message send if it would block

Summary: If multiple iovs are passed to sendmsg, sendmsg is supposed to return the number of bytes sent if it would block, but only if the number of bytes sent is greater than 0.

Reviewed By: yfeldblum

Differential Revision: D4099691

fbshipit-source-id: e58fa71604966129b1fbd418c24b1bf012060428
folly/portability/Sockets.cpp