mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-18 09:46:24 +01:00
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:
1 parent
c91da3d1f8
commit
91eaabf371
4 files changed
+117
-9
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user