Skip to content

Commit

Permalink
check errno during try_send
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Apr 30, 2024
1 parent 3d8c814 commit 590b308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ NAN_METHOD(SocketWrap::Send) {
}

if (rc == SOCKET_ERROR) {
if(try_send){
if(try_send && (errno == EAGAIN || errno == EWOULDBLOCK)){
info.GetReturnValue().Set(Nan::New<Boolean>(false));
return;
}
Expand Down

0 comments on commit 590b308

Please sign in to comment.