fix: StreamGunWithConn not synchronously close the incoming net.Conn

This commit is contained in:
wwqgtxx
2025-04-03 23:41:24 +08:00
parent 622d99d000
commit 7de24e26b4
6 changed files with 42 additions and 23 deletions

View File

@@ -56,8 +56,7 @@ func NewServerHandler(options ServerOption) http.Handler {
}
return request.Body, nAddr, nil
},
writer: writer,
flusher: writer.(http.Flusher),
writer: writer,
}
wrapper := &h2ConnWrapper{