Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug that uses
&read
for num bytes received
Summary: Bug currently passes `size_t(read)`, which is the memory address of the `read` function. The correct argument is a positive `ret`, which is the length of the message in bytes. The bug is innocuous because the value is placed in a log statement and otherwise unused. I clean up the logic and only notify when `ret >= 0`. Reviewed By: ot Differential Revision: D66336105 fbshipit-source-id: ca2b95275048893aa5c1b86a5ffb534a806bc2ee
- Loading branch information