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

Unified Diff: net/quic/quic_flow_controller.cc

Issue 1541263002: Landing Recent QUIC changes until 12/18/2015 13:57 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace -1 with 0xff for InvalidPathId 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/quic_flags.cc ('k') | net/quic/quic_flow_controller_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_flow_controller.cc
diff --git a/net/quic/quic_flow_controller.cc b/net/quic/quic_flow_controller.cc
index 963d2e9f1763d509c2e01eed9b6fb4a22f19fe35..bf0c5ff2809af8602fe9e97a853700ce0d007799 100644
--- a/net/quic/quic_flow_controller.cc
+++ b/net/quic/quic_flow_controller.cc
@@ -4,6 +4,7 @@
#include "net/quic/quic_flow_controller.h"
+#include "base/strings/stringprintf.h"
#include "net/quic/quic_connection.h"
#include "net/quic/quic_flags.h"
#include "net/quic/quic_protocol.h"
@@ -72,7 +73,13 @@ void QuicFlowController::AddBytesSent(QuicByteCount bytes_sent) {
bytes_sent_ = send_window_offset_;
// This is an error on our side, close the connection as soon as possible.
- connection_->SendConnectionClose(QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA);
+ connection_->SendConnectionCloseWithDetails(
+ QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA,
+ base::StringPrintf(
+ "%llu bytes over send window offset",
+ static_cast<unsigned long long>(send_window_offset_ -
+ (bytes_sent_ + bytes_sent)))
+ .c_str());
return;
}
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_flow_controller_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698