doc: fix comments in tls_wrap.cc and _http_client.js
fixed grammatically wrong expressions to make it clear Reviewed By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/2490 PR-URL: https://github.com/nodejs/node/pull/2489
This commit is contained in:
parent
b897af4558
commit
f3c3b23d55
@ -216,7 +216,7 @@ function socketCloseListener() {
|
|||||||
// is a no-op if no final chunk remains.
|
// is a no-op if no final chunk remains.
|
||||||
socket.read();
|
socket.read();
|
||||||
|
|
||||||
// NOTE: Its important to get parser here, because it could be freed by
|
// NOTE: It's important to get parser here, because it could be freed by
|
||||||
// the `socketOnData`.
|
// the `socketOnData`.
|
||||||
var parser = socket.parser;
|
var parser = socket.parser;
|
||||||
req.emit('close');
|
req.emit('close');
|
||||||
|
@ -561,8 +561,8 @@ int TLSWrap::DoWrite(WriteWrap* w,
|
|||||||
}
|
}
|
||||||
if (empty) {
|
if (empty) {
|
||||||
ClearOut();
|
ClearOut();
|
||||||
// However if there any data that should be written to socket,
|
// However, if there is any data that should be written to the socket,
|
||||||
// callback should not be invoked immediately
|
// the callback should not be invoked immediately
|
||||||
if (BIO_pending(enc_out_) == 0)
|
if (BIO_pending(enc_out_) == 0)
|
||||||
return stream_->DoWrite(w, bufs, count, send_handle);
|
return stream_->DoWrite(w, bufs, count, send_handle);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user