s3: answer ClientDisconnected for a GET the client aborted before the first byte (#12707)

* s3: answer ClientDisconnected for a GET the client aborted before the first byte

Fixes #12706

* s3: tell a gone client on TLS and HTTP/2 too, and not on a connection the server closed
This commit is contained in:
Konstantin Adzer authored and GitHub committed 2026-11-17 17:15:00 -08:00
1 parent c91da3d1f8
commit 91eaabf371
4 files changed
+117 -9

No files matched your search

+2 -1
View File
@@ -565,7 +565,8 @@ func idleTimeoutSeconds(seconds *int) time.Duration {
func newHttpServer(h http.Handler, tlsConfig *tls.Config) *http.Server {
s := &http.Server{
Handler: h,
Handler: h,
ConnContext: util.ConnContext,
}
if tlsConfig != nil {
s.TLSConfig = tlsConfig.Clone()