node-modules/agentkeepalive

connect ENOBUFS

ankitchoudary opened this issue · 1 comments

Hi,

I am getting connect ENOBUFS [IP Address]- Local error intermittently when i enabled keepAliveAgent.
Without keepAliveAgent , I get Connect timeout from third party application as too many connections are getting opened with the third party application.
Please find below my setup:
const HttpsAgent = require('agentkeepalive').HttpsAgent;
const keepaliveAgent = new HttpsAgent({
keepalive: true,
maxSockets: 40,
maxFreeSockets: 10,
freeSocketTimeout: 30000,
timeout: 60000
});

Having the same problem, everything just blows up after a while when using this agent

 Error: connect ENOBUFS [IP_ADDRESS] - Local (undefined:undefined)