You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (req.headers['via'].incudes('random')) {
req.setSocketKeepAlive(true, 1000)
}
The point being I'd like to be able to change the HTTP Keep Alive behaviour per request based on the content of the request being sent. Obviously the above doesn't work, is there a way to do it?
I'm not sure how or if it's even possible to use https://nodejs.org/docs/latest-v8.x/api/http.html#http_request_setsocketkeepalive_enable_initialdelay
I'm interested in being able to do something like
The point being I'd like to be able to change the HTTP Keep Alive behaviour per request based on the content of the request being sent. Obviously the above doesn't work, is there a way to do it?
I can use https://nodejs.org/docs/latest-v8.x/api/http.html#http_server_keepalivetimeout as a setting for any/all requests, but I'm wondering if I don't have to do that, and could instead do it on a per request basis?
The text was updated successfully, but these errors were encountered: