hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Client should respect the "Keep-Alive" header

Open loyd opened this issue 3 years ago • 2 comments

It seems that hyper doesn't respect the Keep-Alive header and just uses a predefined value (90 seconds). Instead, hyper should consider the header and rotate connections according to it.

Related issue: https://github.com/hyperium/hyper/issues/2136. Users disable the pool totally as the easiest solution.

loyd avatar Dec 10 '21 10:12 loyd

Do other client libraries pay attention to that header? I haven't noticed any...

seanmonstar avatar Dec 10 '21 16:12 seanmonstar

It looks like browsers universally support it at least: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive

sfackler avatar Jan 01 '22 18:01 sfackler