by divbzero · 4y ago · 0 comments
That said I agree that using keepalive seems like a reasonable default - especially since other HTTP clients do the same.
I agree that there can be drawbacks - e.g. Nginx trying to use a keepalive connection while the backend already closed it due to badly aligned timeouts. That's a potential availability issue which can only be avoided by careful configuration. Client not supporting keepalives shouldn't be an issue, since Nginx is the client here.