Bug 1734198 - Close transactions with NS_ERROR_NET_RESET if a stateless reset is received on a HTTP/3 connection. r=necko-reviewers,valentin

This is an appropriate error to set and it may cause transactions to be restarted if possible (e.g. no data has been received already and the method is safe).

Differential Revision: https://phabricator.services.mozilla.com/D127877
This commit is contained in:
Dragana Damjanovic 2021-10-14 12:55:35 +00:00
Родитель fede2312c1
Коммит 4aff9977b4
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -254,6 +254,8 @@ void Http3Session::Shutdown() {
stream->Close(NS_ERROR_NET_PARTIAL_TRANSFER);
} else if (mError == NS_ERROR_NET_HTTP3_PROTOCOL_ERROR) {
stream->Close(NS_ERROR_NET_HTTP3_PROTOCOL_ERROR);
} else if (mError == NS_ERROR_NET_RESET) {
stream->Close(NS_ERROR_NET_RESET);
} else {
stream->Close(NS_ERROR_ABORT);
}