http3: simplify connection closing in the frame parser (#5196)

No functional change expected.
This commit is contained in:
Marten Seemann
2025-06-07 13:21:53 +08:00
committed by GitHub
parent 30dede9803
commit 9580396fa1
6 changed files with 11 additions and 11 deletions

View File

@@ -287,7 +287,7 @@ func (c *connection) handleUnidirectionalStreams(hijack func(StreamType, quic.Co
}
func (c *connection) handleControlStream(str *quic.ReceiveStream) {
fp := &frameParser{conn: c.Connection, r: str}
fp := &frameParser{closeConn: c.Connection.CloseWithError, r: str}
f, err := fp.ParseNext()
if err != nil {
var serr *quic.StreamError