sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Add `Keep-Alive` header if `keep_alive` is on

Open sentrivana opened this issue 5 months ago • 0 comments

If keep_alive is set to True, we currently set a bunch of TCP socket options. There are also respective HTTP headers (Connection and Keep-Alive) that we don't set.

Apparently HTTP/1.1 keeps connections open by default and the Connection header is not needed. However, a reasonable Keep-Alive that is in line with the timeout in the socket options would be good to add.

sentrivana avatar Sep 13 '24 07:09 sentrivana