diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 340c2968cb6fb0..e72bf8f7f7db02 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -50,8 +50,7 @@ Worker 6056 started Worker 5644 started ``` -Please note that on Windows, it is not yet possible to set up a named pipe -server in a worker. +On Windows, it is not yet possible to set up a named pipe server in a worker. ## How It Works @@ -277,7 +276,7 @@ In the master, an internal message is sent to the worker causing it to call Causes `.exitedAfterDisconnect` to be set. -Note that after a server is closed, it will no longer accept new connections, +After a server is closed, it will no longer accept new connections, but connections may be accepted by any other listening worker. Existing connections will be allowed to close as usual. When no more connections exist, see [`server.close()`][], the IPC channel to the worker will close allowing it @@ -287,8 +286,8 @@ The above applies *only* to server connections, client connections are not automatically closed by workers, and disconnect does not wait for them to close before exiting. -Note that in a worker, `process.disconnect` exists, but it is not this function, -it is [`disconnect`][]. +In a worker, `process.disconnect` exists, but it is not this function; +it is [`disconnect()`][]. Because long living server connections may block workers from disconnecting, it may be useful to send a message, so application specific actions may be taken to @@ -403,8 +402,8 @@ Causes `.exitedAfterDisconnect` to be set. This method is aliased as `worker.destroy()` for backwards compatibility. -Note that in a worker, `process.kill()` exists, but it is not this function, -it is [`kill`][]. +In a worker, `process.kill()` exists, but it is not this function; +it is [`kill()`][]. ### worker.process