Skip to content

Commit

Permalink
Debugger: Prevent infinite loop on dead socket.
Browse files Browse the repository at this point in the history
If send() fails, abort instead of retrying forever.
  • Loading branch information
unknownbrackets committed Jun 10, 2018
1 parent 4232ef5 commit cd85dec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/native/net/sinks.cpp
Expand Up @@ -333,6 +333,8 @@ bool OutputSink::Flush(bool allowBlock) {
if (!allowBlock || !Block()) { if (!allowBlock || !Block()) {
return false; return false;
} }
} else if (bytes < 0) {
return false;
} }
} }


Expand Down

0 comments on commit cd85dec

Please sign in to comment.