Skip to content

Commit 1850ba1

Browse files
aojeabradfitz
authored andcommitted
http2: make the Server use the priority write scheduler
make the Server use the priority write scheduler by default, this way the defaults will be the same on stdlib and x/net. xref: golang/go@8f36668 Signed-off-by: Antonio Ojea <[email protected]> Change-Id: Ibeed7a2bb8949d9bc5edb30fc723427f6cc157be Reviewed-on: https://go-review.googlesource.com/c/net/+/382015 Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent a630d4f commit 1850ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http2/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) {
400400
if s.NewWriteScheduler != nil {
401401
sc.writeSched = s.NewWriteScheduler()
402402
} else {
403-
sc.writeSched = NewRandomWriteScheduler()
403+
sc.writeSched = NewPriorityWriteScheduler(nil)
404404
}
405405

406406
// These start at the RFC-specified defaults. If there is a higher

0 commit comments

Comments
 (0)