diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-19 13:04:34 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-19 13:04:34 +0400 |
commit | 061ce7b0ac370c8a5ae93d95ab7da171cbd488f0 (patch) | |
tree | abd459572426d4ba3efe27822fc1d11b6c7c17d3 /lib | |
parent | 4ef8f06fe62edb74fded0e817266cb6398e69f36 (diff) |
net_uv: Fix simple/test-http-expect-continue.js
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net_uv.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/net_uv.js b/lib/net_uv.js index 87b0affea43..d9e0f1b2c5d 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -310,6 +310,12 @@ Socket.prototype.write = function(data /* [encoding], [fd], [cb] */) { } var writeReq = this._handle.write(data); + + if (!writeReq) { + this.destroy(errnoException(errno, 'write')); + return false; + } + writeReq.oncomplete = afterWrite; writeReq.cb = cb; this._writeRequests.push(writeReq); |