doc: revise agent.destroy() text

PR-URL: https://github.com/nodejs/node/pull/36163
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Rich Trott 2020-11-18 06:53:25 -08:00
parent a9f5b2b62c
commit cde87ed761

View File

@ -253,8 +253,8 @@ Destroy any sockets that are currently in use by the agent.
It is usually not necessary to do this. However, if using an It is usually not necessary to do this. However, if using an
agent with `keepAlive` enabled, then it is best to explicitly shut down agent with `keepAlive` enabled, then it is best to explicitly shut down
the agent when it will no longer be used. Otherwise, the agent when it is no longer needed. Otherwise,
sockets may hang open for quite a long time before the server sockets might stay open for quite a long time before the server
terminates them. terminates them.
### `agent.freeSockets` ### `agent.freeSockets`