Permalink
Browse files

Debugger: Prevent infinite loop on dead socket.

If send() fails, abort instead of retrying forever.
  • Loading branch information...
unknownbrackets committed Jun 10, 2018
1 parent 4232ef5 commit cd85dec01ba0549352c34a085cdec091a9258780
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/native/net/sinks.cpp
View
@@ -333,6 +333,8 @@ bool OutputSink::Flush(bool allowBlock) {
if (!allowBlock || !Block()) {
return false;
}
} else if (bytes < 0) {
return false;
}
}

0 comments on commit cd85dec

Please sign in to comment.