-
-
Save bnoordhuis/61f188de167473c4187e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/net.js b/lib/net.js | |
index 19858e8..e182173 100644 | |
--- a/lib/net.js | |
+++ b/lib/net.js | |
@@ -465,7 +465,11 @@ function afterWrite(status, handle, req, buffer) { | |
if (self.destroyed) { | |
return; | |
} | |
- // TODO check status. | |
+ | |
+ if (status) { | |
+ self.destroy(errnoException(errno, 'write')); | |
+ return; | |
+ } | |
timers.active(this); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment