Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72e8ee5

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
doc: improve server.listen() documentation prose
PR-URL: #7000 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuval Brik <yuval@brik.org.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 649d201 commit 72e8ee5
Copy full SHA for 72e8ee5

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.