Skip to content

Commit a0692c4

Browse files
committed
flush as soon as possible
1 parent 27f1598 commit a0692c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

http2/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2687,6 +2687,10 @@ func (rws *responseWriterState) writeHeader(code int) {
26872687
rws.dirty = true
26882688
}
26892689

2690+
if code == 103 {
2691+
rws.bw.Flush()
2692+
}
2693+
26902694
return
26912695
}
26922696

0 commit comments

Comments
 (0)