Skip to content

Commit 07426ef

Browse files
koichikry
authored andcommitted
Document allowHalfOpen for net.createServer()
1 parent 5e91042 commit 07426ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/net.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ automatically set as a listener for the `'connection'` event.
1414
{ allowHalfOpen: false
1515
}
1616

17+
If `allowHalfOpen` is `true`, then the socket won't automatically send FIN
18+
packet when the other end of the socket sends a FIN packet. The socket becomes
19+
non-readable, but still writable. You should call the end() method explicitly.
20+
See `'end'` event for more information.
21+
1722
### net.createConnection(arguments...)
1823

1924
Construct a new socket object and opens a socket to the given location. When

0 commit comments

Comments
 (0)