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

Unified Diff: net/tools/quic/quic_client.cc

Issue 1548783002: Adding details to most quic connection close calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110540464
Patch Set: Created 5 years 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 | « net/quic/reliable_quic_stream_test.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index 2365c84852b375107e7773acff2f0b12fc2e11fc..032b094ac73e7524c2b4c885482d6de3337ce8cd 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -74,7 +74,8 @@ QuicClient::QuicClient(IPEndPoint server_address,
QuicClient::~QuicClient() {
if (connected()) {
- session()->connection()->SendConnectionClose(QUIC_PEER_GOING_AWAY);
+ session()->connection()->SendConnectionCloseWithDetails(
+ QUIC_PEER_GOING_AWAY, "Client being torn down");
}
STLDeleteElements(&data_to_resend_on_connect_);
@@ -260,7 +261,8 @@ void QuicClient::Disconnect() {
DCHECK(initialized_);
if (connected()) {
- session()->connection()->SendConnectionClose(QUIC_PEER_GOING_AWAY);
+ session()->connection()->SendConnectionCloseWithDetails(
+ QUIC_PEER_GOING_AWAY, "Client disconnecting");
}
STLDeleteElements(&data_to_resend_on_connect_);
STLDeleteElements(&data_sent_before_handshake_);
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698