Fix wrapvFull for the case when iovec* has size more than 1024
Summary: `folly::wrapvFull` fail if the passed in `iovec*` has more than 1024 (`IOV_MAX`) elements. In particular, it returns -1 with errno 22 [Invalid argument]. The fix is to limit maximum size of iovec* to IOV_MAX that is passed in to `readv/writev/...` in a single iteration of outer loop. Reviewed By: yfeldblum Differential Revision: D2935540 fb-gh-sync-id: 6c0a073ac0b59db3d53fb4269b13ddfcc479efb1 shipit-source-id: 6c0a073ac0b59db3d53fb4269b13ddfcc479efb1
Showing
Please register or sign in to comment