Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f05982b
doc: add supported platforms list
mhdawson Mar 17, 2017
76e903e
doc: add supported platforms list for v6.x
mhdawson Mar 20, 2017
6486b97
doc: fix broken URL to event loop guide
sushi90 Mar 3, 2017
078188d
stream: avoid additional validation for Buffers
mscdex Jan 2, 2017
daddf5a
tools, test: require const/let in test
gibfahn Jan 8, 2017
b2fc0f0
test: use eslint to fix var->const/let
gibfahn Mar 9, 2017
7e98f23
doc: fix stylistic issues in api/net.md
aqrln Mar 10, 2017
533e565
test: add arrow functions to test-util-inspect
aqrln Mar 10, 2017
0695c09
test: skip when openssl CLI doesn't exist
sotayamashita Feb 1, 2017
17963a5
build: --without-ssl implies --without-inspector
bnoordhuis Apr 4, 2017
3855504
doc: new TLSSocket has no secure context options
sam-github Dec 30, 2016
a6ab9f2
doc: clarify memory sharing behavior of buffer ctor
zbjornson Jan 13, 2017
b85d15f
test: improve test-fs-access
edsadr Jan 3, 2017
3cde69a
test: refactor test-beforeexit-event-exit.js
cjihrig Jan 2, 2017
a654502
test: s/assert.equal/assert.strictEqual/
gibfahn Jan 8, 2017
acd9bc3
assert, tools: enforce strict (not)equal in eslint
gibfahn Jan 8, 2017
42d1fb1
test: refactor test-stream2-readable-wrap.js
DavidGoussev Dec 31, 2016
f23c818
test: getgroups() may contain duplicate GIDs
sam-github Dec 21, 2016
c555f53
doc,test: tls .ca option supports multi-PEM files
sam-github Dec 21, 2016
54486c0
test: tls cert chain completion scenarios
sam-github Dec 20, 2016
b631966
doc: use correct tls certificate property name
sam-github Dec 20, 2016
cdc354a
test: check tls server verification with addCACert
sam-github Dec 20, 2016
b0daa9b
test: move common tls connect setup into fixtures
sam-github Dec 17, 2016
7b121f1
doc: make os api doc more consistent
evanlucas Jan 25, 2017
dcf20bc
doc: fix typo in STYLE_GUIDE.md
seishun Feb 28, 2017
7a6683e
doc: use common malformed instead of misformatted
jsumners Feb 23, 2017
de13d62
doc: add link to references in net.Socket
joyeecheung Mar 1, 2017
1427c0e
test: skip tests with common.skip
thefourtheye Feb 27, 2017
ea719a1
doc: fixup errors.md
vsemozhetbyt Feb 26, 2017
c60fd7f
net: remove misleading comment
bnoordhuis Feb 27, 2017
6765c88
src: make copies of startup environment variables
bnoordhuis Jan 28, 2017
0dc1d85
src: add SafeGetenv() to internal API
sam-github Jan 27, 2017
b89ea8a
crypto: support OPENSSL_CONF again
sam-github Jan 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
net: remove misleading comment
The allowHalfOpen comment was added in commit 8a3befa ("net: Refactor
to use streams2") from 2012 but it wasn't true even then as far as I
can tell: Node.js simply always does a shutdown(2) first.

It is true that streams2 withholds the 'end' event when allowHalfOpen
is true but the comment is about a callback that hangs off the 'finish'
event that is emitted after calling `socket.end()`.

PR-URL: #11573
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
bnoordhuis authored and MylesBorins committed Apr 17, 2017
commit c60fd7f640dd5d043a0fb8877192ccc4cf59ef06
4 changes: 0 additions & 4 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ Socket.prototype._unrefTimer = function _unrefTimer() {

// the user has called .end(), and all the bytes have been
// sent out to the other side.
// If allowHalfOpen is false, or if the readable side has
// ended already, then destroy.
// If allowHalfOpen is true, then we need to do a shutdown,
// so that only the writable side will be cleaned up.
function onSocketFinish() {
// If still connecting - defer handling 'finish' until 'connect' will happen
if (this.connecting) {
Expand Down