use application-specific CONNECTION_CLOSE for normal termination

This commit is contained in:
Marten Seemann
2019-11-08 13:48:50 +07:00
parent a472ac4731
commit 6a9a591a10
2 changed files with 10 additions and 4 deletions

View File

@@ -1030,7 +1030,7 @@ func (s *session) CloseWithError(code protocol.ApplicationErrorCode, desc string
func (s *session) handleCloseError(closeErr closeError) {
if closeErr.err == nil {
closeErr.err = qerr.NoError
closeErr.err = qerr.ApplicationError(0, "")
}
var quicErr *qerr.QuicError