File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ Begin accepting connections on the specified `port` and `hostname`. If the
182
182
port value of zero will assign a random port.
183
183
184
184
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
187
187
parameter is 511 (not 512).
188
188
189
189
This function is asynchronous. When the server has been bound,
@@ -192,7 +192,7 @@ will be added as a listener for the [`'listening'`][] event.
192
192
193
193
One issue some users run into is getting ` EADDRINUSE ` errors. This means that
194
194
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:
196
196
197
197
``` js
198
198
server .on (' error' , (e ) => {
@@ -206,7 +206,7 @@ server.on('error', (e) => {
206
206
});
207
207
```
208
208
209
- (Note: All sockets in Node.js set ` SO_REUSEADDR ` already )
209
+ (Note: All sockets in Node.js are set ` SO_REUSEADDR ` . )
210
210
211
211
### server.maxConnections
212
212
You can’t perform that action at this time.
0 commit comments