Document allowHalfOpen for net.createServer()

This commit is contained in:
koichik 2011-03-04 01:05:03 +09:00 committed by Ryan Dahl
parent 5e91042fcb
commit 07426ef29c
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ automatically set as a listener for the `'connection'` event.
{ allowHalfOpen: false
}
If `allowHalfOpen` is `true`, then the socket won't automatically send FIN
packet when the other end of the socket sends a FIN packet. The socket becomes
non-readable, but still writable. You should call the end() method explicitly.
See `'end'` event for more information.
### net.createConnection(arguments...)
Construct a new socket object and opens a socket to the given location. When