Skip to content

Instantly share code, notes, and snippets.

Jonathan Barber jbarber

View GitHub Profile
atimb / agent.js
Last active Dec 9, 2015
Real keep-alive HTTP agent for node.js
View agent.js
* Real keep-alive HTTP agent
* ------------=================----------------
* UPDATE: There are more proper implementations for this problem, distributed as
* npm modules like this one:
* ------------=================----------------
* The http module's agent implementation only keeps the underlying TCP
* connection alive, if there are pending requests towards that endpoint in the agent
You can’t perform that action at this time.