forked from quic-go/quic-go
properly close h2 streams fin bit in h2 header set
This commit is contained in:
@@ -139,6 +139,7 @@ func (s *Server) handleRequest(session streamCreator, headerStream utils.Stream,
|
||||
|
||||
if h2headersFrame.StreamEnded() {
|
||||
dataStream.CloseRemote(0)
|
||||
_, _ = dataStream.Read([]byte{0}) // read the eof
|
||||
}
|
||||
|
||||
// stream's Close() closes the write side, not the read side
|
||||
|
||||
Reference in New Issue
Block a user