This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Real keep-alive HTTP agent | |
* | |
* ------------=================---------------- | |
* UPDATE: There are more proper implementations for this problem, distributed as | |
* npm modules like this one: https://github.com/TBEDP/agentkeepalive | |
* ------------=================---------------- | |
* | |
* The http module's agent implementation only keeps the underlying TCP | |
* connection alive, if there are pending requests towards that endpoint in the agent |