Use optlen instead of return code to determine bytes read
Summary: Was using the return of `getsockopt` as the number of bytes read, which is incorrect. Changed to using the length field. Also changed how the `Options` fields are initialized to prevent issues on certain platforms. Will follow up with an integration test. Differential Revision: D29257090 fbshipit-source-id: 518794c76bf74ab092ed7955c48ec8a3b3472c24
Showing
Please register or sign in to comment