Skip to content

Commit 72e8ee5

Browse files
TrottMyles Borins
authored and
Myles Borins
committedJul 14, 2016
doc: improve server.listen() documentation prose
PR-URL: #7000 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuval Brik <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent 649d201 commit 72e8ee5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎doc/api/net.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ Begin accepting connections on the specified `port` and `hostname`. If the
182182
port value of zero will assign a random port.
183183

184184
Backlog is the maximum length of the queue of pending connections.
185-
The actual length will be determined by your OS through sysctl settings such as
186-
`tcp_max_syn_backlog` and `somaxconn` on linux. The default value of this
185+
The actual length will be determined by the OS through sysctl settings such as
186+
`tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this
187187
parameter is 511 (not 512).
188188

189189
This function is asynchronous. When the server has been bound,
@@ -192,7 +192,7 @@ will be added as a listener for the [`'listening'`][] event.
192192

193193
One issue some users run into is getting `EADDRINUSE` errors. This means that
194194
another server is already running on the requested port. One way of handling this
195-
would be to wait a second and then try again. This can be done with
195+
would be to wait a second and then try again:
196196

197197
```js
198198
server.on('error', (e) => {
@@ -206,7 +206,7 @@ server.on('error', (e) => {
206206
});
207207
```
208208

209-
(Note: All sockets in Node.js set `SO_REUSEADDR` already)
209+
(Note: All sockets in Node.js are set `SO_REUSEADDR`.)
210210

211211
### server.maxConnections
212212

0 commit comments

Comments
 (0)
Please sign in to comment.