wrappedQUICStream to handle stream close properly

This commit is contained in:
Toby
2021-08-02 22:42:25 -07:00
parent 5d29fb954d
commit 97c83dc935
3 changed files with 57 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ func (c *serverClient) Run() {
c.ConnGauge.Inc()
}
go func() {
stream := &wrappedQUICStream{stream}
c.handleStream(stream)
_ = stream.Close()
if c.ConnGauge != nil {