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.
|
||||
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`.
|
||||
var parser = socket.parser;
|
||||
req.emit('close');
|
||||
|
@ -561,8 +561,8 @@ int TLSWrap::DoWrite(WriteWrap* w,
|
||||
}
|
||||
if (empty) {
|
||||
ClearOut();
|
||||
// However if there any data that should be written to socket,
|
||||
// callback should not be invoked immediately
|
||||
// However, if there is any data that should be written to the socket,
|
||||
// the callback should not be invoked immediately
|
||||
if (BIO_pending(enc_out_) == 0)
|
||||
return stream_->DoWrite(w, bufs, count, send_handle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user