Agent
Extends https.Agent
Module: azure
A https.Agent subclass for use with a Azure Storage Services. This agent is a specialization of the https.Agent class with extra features:
- catches socket errors from free sockets,
- closes sockets after being idle for 55 seconds, and
- disables TCP Nagle for all sockets (socket.setNoDelay).
For details on Azure issues with ECONNRESET see: blog.gluwer.com.
Table of Contents
- Methods
Constructor
Agent
(
-
options
Parameters:
-
options
Objectoptions
compatible withhttp.Agent
.
Methods
addRequest
()
Overwrites the addRequest
method so we can remove error handler and timeout
handler from sockets when they are given to a request.
removeSocket
()
Overwrites the removeSocket
method so we can remove error handler and
timeout handler from sockets when they are removed the agent.