Skip to content

Commit

Permalink
Additional docs for net.listenFD()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cavage authored and ry committed May 20, 2011
1 parent 9c7f89b commit a55a9ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ when the server has been bound.
Start a server listening for connections on the given file descriptor.

This file descriptor must have already had the `bind(2)` and `listen(2)` system
calls invoked on it.
calls invoked on it. Additionally, it must be set non-blocking; try
`fcntl(fd, F_SETFL, O_NONBLOCK)`.

#### server.pause(msecs)

Stop accepting connections for the given number of milliseconds (default is
one second). This could be useful for throttling new connections against
Stop accepting connections for the given number of milliseconds (default is
one second). This could be useful for throttling new connections against
DoS attacks or other oversubscription.

#### server.close()
Expand Down

0 comments on commit a55a9ff

Please sign in to comment.