Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: net/http/http_network_transaction.cc

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index e0105c60396fe3f891916b12114cff7c14da899b..7f98949f7eccebd6a78dc4a82ca5a72330b76cfc 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1533,6 +1533,15 @@ int HttpNetworkTransaction::HandleIOError(int error) {
error = OK;
}
break;
+ case ERR_QUIC_BROKEN_ERROR:
+ if (GetResponseHeaders() == nullptr) {
+ net_log_.AddEventWithNetErrorCode(
+ NetLogEventType::HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
+ ResetConnectionAndRequestForResend();
+ error = OK;
+ break;
+ }
+ error = ERR_QUIC_PROTOCOL_ERROR;
mmenke 2017/04/03 18:47:47 I don't think this is meant to fall through. Shou
mmenke 2017/04/03 18:48:34 Also, a comment on what one error is being replace
Ryan Hamilton 2017/04/05 19:26:20 Agreed. Though this has been reworked and is now m
Ryan Hamilton 2017/04/05 19:26:20 *facepalm* Yes indeed :( Thanks!
case ERR_SPDY_PING_FAILED:
case ERR_SPDY_SERVER_REFUSED_STREAM:
case ERR_QUIC_HANDSHAKE_FAILED:

Powered by Google App Engine
This is Rietveld 408576698