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

Unified Diff: net/quic/quic_connection.cc

Issue 1424043003: Cleanup: Call OnWriteError instead of directly closing the connection when failing to send a QUIC v… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106394664
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index b676fc2f4dd1f4345c13e43bb06ba2886da8f243..f222a1f5a49c1301636207bb0709ca7a7ae3ac63 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1103,8 +1103,7 @@ void QuicConnection::SendVersionNegotiationPacket() {
self_address().address(), peer_address());
if (result.status == WRITE_STATUS_ERROR) {
- // We can't send an error as the socket is presumably borked.
- CloseConnection(QUIC_PACKET_WRITE_ERROR, false);
+ OnWriteError(result.error_code);
return;
}
if (result.status == WRITE_STATUS_BLOCKED) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698