@marcel91200 / caddy Mirror · read-only / commits / 19be5d8c
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 06:00 UTC

caddyhttp: remove unused QUICConfig from the HTTP/3 server (#7980)

Signed-off-by: Faiyaz Rahman <faiyazrahman03@gmail.com>

Faiyaz Rahman committed Sep 2, 2026 at 22:02 UTC 19be5d8c587ae081957ce967e43cdb028df9e0ba
1 file changed +4 -7
modules/caddyhttp/server.go
+4 -7
@@ -32,9 +32,7 @@ import (
32 "time"
33
34 "github.com/caddyserver/certmagic"
35 - "github.com/quic-go/quic-go"
35 "github.com/quic-go/quic-go/http3"
37 - h3qlog "github.com/quic-go/quic-go/http3/qlog"
36 "go.uber.org/zap"
37 "go.uber.org/zap/zapcore"
38
@@ -1036,11 +1034,10 @@ func (s *Server) serveHTTP3(addr caddy.NetworkAddress, tlsCfg *tls.Config) error
1034 Handler: s,
1035 TLSConfig: tlsCfg,
1036 MaxHeaderBytes: s.MaxHeaderBytes,
1039 - QUICConfig: &quic.Config{
1040 - Versions: []quic.Version{quic.Version1, quic.Version2},
1041 - InitialPacketSize: 1200,
1042 - Tracer: h3qlog.DefaultConnectionTracer,
1043 - },
1037 + // QUICConfig is deliberately unset: http3.Server only reads it when it
1038 + // creates its own listener (ListenAndServe/Serve). We bring our own
1039 + // listener and call ServeListener, so anything set here is ignored.
1040 + // The QUIC settings that actually apply are in NetworkAddress.ListenQUIC.
1041 IdleTimeout: time.Duration(s.IdleTimeout),
1042 }
1043 }