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

Unified Diff: net/quic/quic_session.cc

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « net/quic/quic_server_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index 8e73bdf4549bccdfe2f53f1a80c6583ce653d961..20fd9835b0c5daa64dcaa7fd679f32f1181edf11 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -109,12 +109,12 @@ QuicSession::QuicSession(QuicConnection* connection, const QuicConfig& config)
has_pending_handshake_(false) {
if (connection_->version() == QUIC_VERSION_19) {
flow_controller_.reset(new QuicFlowController(
- connection_.get(), 0, is_server(), kDefaultFlowControlSendWindow,
+ connection_.get(), 0, is_server(), kMinimumFlowControlSendWindow,
config_.GetInitialFlowControlWindowToSend(),
config_.GetInitialFlowControlWindowToSend()));
} else {
flow_controller_.reset(new QuicFlowController(
- connection_.get(), 0, is_server(), kDefaultFlowControlSendWindow,
+ connection_.get(), 0, is_server(), kMinimumFlowControlSendWindow,
config_.GetInitialSessionFlowControlWindowToSend(),
config_.GetInitialSessionFlowControlWindowToSend()));
}
@@ -509,10 +509,10 @@ void QuicSession::OnConfigNegotiated() {
}
void QuicSession::OnNewStreamFlowControlWindow(QuicStreamOffset new_window) {
- if (new_window < kDefaultFlowControlSendWindow) {
- LOG(ERROR)
- << "Peer sent us an invalid stream flow control send window: "
- << new_window << ", below default: " << kDefaultFlowControlSendWindow;
+ if (new_window < kMinimumFlowControlSendWindow) {
+ LOG(ERROR) << "Peer sent us an invalid stream flow control send window: "
+ << new_window
+ << ", below default: " << kMinimumFlowControlSendWindow;
if (connection_->connected()) {
connection_->SendConnectionClose(QUIC_FLOW_CONTROL_INVALID_WINDOW);
}
@@ -531,10 +531,10 @@ void QuicSession::OnNewStreamFlowControlWindow(QuicStreamOffset new_window) {
}
void QuicSession::OnNewSessionFlowControlWindow(QuicStreamOffset new_window) {
- if (new_window < kDefaultFlowControlSendWindow) {
- LOG(ERROR)
- << "Peer sent us an invalid session flow control send window: "
- << new_window << ", below default: " << kDefaultFlowControlSendWindow;
+ if (new_window < kMinimumFlowControlSendWindow) {
+ LOG(ERROR) << "Peer sent us an invalid session flow control send window: "
+ << new_window
+ << ", below default: " << kMinimumFlowControlSendWindow;
if (connection_->connected()) {
connection_->SendConnectionClose(QUIC_FLOW_CONTROL_INVALID_WINDOW);
}
« no previous file with comments | « net/quic/quic_server_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698