mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
net_uv: Fix simple/test-http-expect-continue.js
This commit is contained in:
parent
4ef8f06fe6
commit
061ce7b0ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user