Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: fix crash if POLLHUP is received
If the `onread` socket option is used and a `POLLHUP` event is received, libuv returns `UV_EOF` along with a `NULL` buffer in the read callback, causing the crash. Deal with this case. Fixes: nodejs/node#31823
- Loading branch information