Allow client to set keepAlive feature to re-use connections. Currently, keepAlive flag is skipped in issue #228872. This causes to keepAlive to be false at agent level, which prevents connection re-use for all endpoints (see nodejs Agent). While some servers may not support keep-alive well, globally disabling the flag seems too broad of impact. It would be great if clients can decide on whether to use keepAlive (through request's keepAlive) instead.
Allow client to set keepAlive feature to re-use connections. Currently,
keepAliveflag is skipped in issue #228872. This causes tokeepAliveto befalseat agent level, which prevents connection re-use for all endpoints (see nodejs Agent). While some servers may not support keep-alive well, globally disabling the flag seems too broad of impact. It would be great if clients can decide on whether to usekeepAlive(through request'skeepAlive) instead.