Agent
Properties
An object which contains arrays of sockets currently awaiting use by the agent when keepAlive
is enabled. Do not modify.
By default set to 256. For agents with keepAlive
enabled, this sets the maximum number of sockets that will be left open in the free state.
By default set to Infinity
. Determines how many concurrent sockets the agent can have open per origin. Origin is the returned value of agent.getName()
.
By default set to Infinity
. Determines how many concurrent sockets the agent can have open. Unlike maxSockets
, this parameter applies across all origins.
An object which contains queues of requests that have not yet been assigned to sockets. Do not modify.
An object which contains arrays of sockets currently in use by the agent. Do not modify.
Functions
Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or Symbol
s.
Returns the current max listener value for the EventEmitter
which is either set by emitter.setMaxListeners(n)
or defaults to {@link defaultMaxListeners}.
By default EventEmitter
s will print a warning if more than 10
listeners are added for a particular event. This is a useful default that helps finding memory leaks. The emitter.setMaxListeners()
method allows the limit to be modified for this specific EventEmitter
instance. The value can be set to Infinity
(or 0
) to indicate an unlimited number of listeners.