fix: count the HTTP keep-alive timeout from when the response is written (#16373)

This PR fixes the HTTP/1.1 server closing a keep-alive connection right
after a slow response write finishes.
4 files changed