Closed
Description
Documentation for keepAliveMsecs
says:
When using HTTP KeepAlive,
how often to send TCP KeepAlive packets over sockets being kept alive.
But internally http.Agent just uses keepAliveMsecs
in socket.setKeepAlive(true, self.keepAliveMsecs);
(https://github.com/nodejs/node/blob/master/lib/_http_agent.js#L73)
From docs for socket.setKeepAlive([enable][, initialDelay])
:
Set initialDelay (in milliseconds) to set the delay between
the last data packet received and the first keepalive probe.
So really keepAliveMsecs
doesn't mean how often keep alive probe will be sent, it means delay between the last data received and the first keep alive probe.