http2 uses new round-robin scheduler (#5946)

This commit is contained in:
WeidiDeng 2023-11-24 09:54:27 +08:00 committed by GitHub
parent 4de2c1c65e
commit 22eecdb90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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") {