Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

net: check status code in afterWrite

Fixes memory leak and spin on writing to dead fds. This was tested in
  • Loading branch information
bnoordhuis authored and ry committed Dec 12, 2011
1 parent e698dd3 commit 8295c806181654fc6bbc8845c727b7378a196304
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/net.js
@@ -465,7 +465,11 @@ function afterWrite(status, handle, req, buffer) {
if (self.destroyed) {
// TODO check status.

if (status) {
self.destroy(errnoException(errno, 'write'));

0 comments on commit 8295c80

Please sign in to comment.
You can’t perform that action at this time.