AgentOptions
Properties
Milliseconds to subtract from the server-provided keep-alive: timeout=...
hint when determining socket expiration time. This buffer helps ensure the agent closes the socket slightly before the server does, reducing the chance of sending a request on a socket that’s about to be closed by the server.
Default port to use when the port is not specified in requests.
When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. Only relevant if keepAlive is set to true.
Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
Environment variables for proxy configuration. See Built-in Proxy Support for details.
Scheduling strategy to apply when picking the next free socket to use.