properly close h2 streams fin bit in h2 header set

This commit is contained in:
Lucas Clemente
2016-06-06 21:49:24 +02:00
parent 3ef33d7cd4
commit 531fc718b5

View File

@@ -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