From e89c9a45b957db566bd354d26d84419acfa7a716 Mon Sep 17 00:00:00 2001 From: WeidiDeng Date: Fri, 24 Nov 2023 09:54:27 +0800 Subject: [PATCH] http2 uses new round-robin scheduler (#5946) --- modules/caddyhttp/app.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index 6dc2ad365..46846d4f8 100644 --- a/modules/caddyhttp/app.go +++ b/modules/caddyhttp/app.go @@ -378,11 +378,7 @@ func (app *App) Start() error { return context.WithValue(ctx, ConnCtxKey, c) }, } - h2server := &http2.Server{ - NewWriteScheduler: func() http2.WriteScheduler { - return http2.NewPriorityWriteScheduler(nil) - }, - } + h2server := new(http2.Server) // disable HTTP/2, which we enabled by default during provisioning if !srv.protocol("h2") {