From b119821201457ffcb4223f2c128e0de3b9675a06 Mon Sep 17 00:00:00 2001 From: Vee Zhang Date: Mon, 27 Feb 2023 15:18:32 +0800 Subject: [PATCH] fix: do not flush immediately after write headers --- http2/transport.go | 1 - 1 file changed, 1 deletion(-) diff --git a/http2/transport.go b/http2/transport.go index 05ba23d3d9..6d0c3a4b40 100644 --- a/http2/transport.go +++ b/http2/transport.go @@ -1614,7 +1614,6 @@ func (cc *ClientConn) writeHeaders(streamID uint32, endStream bool, maxFrameSize cc.fr.WriteContinuation(streamID, endHeaders, chunk) } } - cc.bw.Flush() return cc.werr }