-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
🚀 Feature Proposal
In keep-alive response header, there is a posibility to define the timeout and max requests for the connection
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive
I would like propose the functionality on the server, that will count requests per socket and send "connection: closed" header and actually close the connection when it reached the maximum value
Motivation
Currently as fast as I can understand, nothing can force the connection on the server to be closed, for example both
"connectionTimeout" and "keepAliveTimeout" define the time of inactivity, for the socket to be closed, but if the socket is always active, or the client ignores this header, server will not send the "connection: close" header and close the connection