close the connection when encountering an error on the header stream

fixes #403
This commit is contained in:
Marten Seemann
2017-01-26 14:12:50 +09:00
parent 86e02c4d2c
commit dfa0137bd6
2 changed files with 24 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ func (s *Server) handleStream(session streamCreator, stream utils.Stream) {
if _, ok := err.(*qerr.QuicError); !ok {
utils.Errorf("error handling h2 request: %s", err.Error())
}
session.Close(qerr.Error(qerr.InvalidHeadersStreamData, err.Error()))
return
}
}