Show:
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

Constructor

Agent
(
  • options
)

Defined in lib/agent.js:34

Parameters:

  • options Object
    • options compatible with http.Agent.

Methods

addRequest ()
private

Defined in lib/agent.js:64

Overwrites the addRequest method so we can remove error handler and timeout handler from sockets when they are given to a request.

removeSocket ()
private

Defined in lib/agent.js:81

Overwrites the removeSocket method so we can remove error handler and timeout handler from sockets when they are removed the agent.