This repository was archived by the owner on Apr 22, 2023. It is now read-only.
File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ The `child.js` could look like this:
221
221
222
222
process.on('message', function(m, socket) {
223
223
if (m === 'socket') {
224
- socket.end('You where handled as a ' + process.argv[2] + ' person');
224
+ socket.end('You were handled as a ' + process.argv[2] + ' person');
225
225
}
226
226
});
227
227
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ This causes potentially surprising behavior in three edge cases:
69
69
the worker to use the supplied handle, rather than talk to the master
70
70
process. If the worker already has the handle, then it's presumed
71
71
that you know what you are doing.
72
- 3 . ` server.listen(0) ` Normally, this will case servers to listen on a
72
+ 3 . ` server.listen(0) ` Normally, this will cause servers to listen on a
73
73
random port. However, in a cluster, each worker will receive the
74
74
same "random" port each time they do ` listen(0) ` . In essence, the
75
75
port is random the first time, but predictable thereafter. If you
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ packet when the other end of the socket sends a FIN packet. The socket becomes
21
21
non-readable, but still writable. You should call the ` end() ` method explicitly.
22
22
See [ 'end'] [ ] event for more information.
23
23
24
- Here is an example of a echo server which listens for connections
24
+ Here is an example of an echo server which listens for connections
25
25
on port 8124:
26
26
27
27
var net = require('net');
You can’t perform that action at this time.
0 commit comments