net_uv: Fix simple/test-http-expect-continue.js

This commit is contained in:
Ryan Dahl 2011-07-19 02:04:34 -07:00
parent 4ef8f06fe6
commit 061ce7b0ac

View File

@ -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);