mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-27 23:03:37 -05:00
http2 uses new round-robin scheduler (#5946)
This commit is contained in:
parent
e9ac48b4be
commit
e89c9a45b9
1 changed files with 1 additions and 5 deletions
|
@ -378,11 +378,7 @@ func (app *App) Start() error {
|
||||||
return context.WithValue(ctx, ConnCtxKey, c)
|
return context.WithValue(ctx, ConnCtxKey, c)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
h2server := &http2.Server{
|
h2server := new(http2.Server)
|
||||||
NewWriteScheduler: func() http2.WriteScheduler {
|
|
||||||
return http2.NewPriorityWriteScheduler(nil)
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
// disable HTTP/2, which we enabled by default during provisioning
|
// disable HTTP/2, which we enabled by default during provisioning
|
||||||
if !srv.protocol("h2") {
|
if !srv.protocol("h2") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue