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

Unified Diff: net/quic/core/quic_connection.cc

Issue 2747443002: Landing recent QUIC changes until Sun Mar 5 09:18:09 2017 +0000 (Closed)
Patch Set: Fixed formatting errors in quic_error_mapping.cc 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
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_connection_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_connection.cc
diff --git a/net/quic/core/quic_connection.cc b/net/quic/core/quic_connection.cc
index 04b0d20ff2f54283097311de22af923a67d88fec..97e689db789b1217475b57031258f32570ed09dc 100644
--- a/net/quic/core/quic_connection.cc
+++ b/net/quic/core/quic_connection.cc
@@ -259,7 +259,6 @@ QuicConnection::QuicConnection(QuicConnectionId connection_id,
largest_received_packet_size_(0),
goaway_sent_(false),
goaway_received_(false),
- multipath_enabled_(false),
write_error_occured_(false),
no_stop_waiting_frames_(false) {
QUIC_DLOG(INFO) << ENDPOINT
@@ -307,10 +306,6 @@ void QuicConnection::SetFromConfig(const QuicConfig& config) {
idle_timeout_connection_close_behavior_ =
ConnectionCloseBehavior::SILENT_CLOSE;
}
- if (FLAGS_quic_reloadable_flag_quic_enable_multipath &&
- config.MultipathEnabled()) {
- multipath_enabled_ = true;
- }
} else {
SetNetworkTimeouts(config.max_time_before_crypto_handshake(),
config.max_idle_time_before_crypto_handshake());
@@ -909,16 +904,6 @@ bool QuicConnection::OnBlockedFrame(const QuicBlockedFrame& frame) {
return connected_;
}
-bool QuicConnection::OnPathCloseFrame(const QuicPathCloseFrame& frame) {
- DCHECK(connected_);
- if (debug_visitor_ != nullptr) {
- debug_visitor_->OnPathCloseFrame(frame);
- }
- QUIC_DLOG(INFO) << ENDPOINT
- << "PATH_CLOSE_FRAME received for path: " << frame.path_id;
- return connected_;
-}
-
void QuicConnection::OnPacketComplete() {
// Don't do anything if this packet closed the connection.
if (!connected_) {
@@ -1314,7 +1299,7 @@ bool QuicConnection::ProcessValidatedPacket(const QuicPacketHeader& header) {
// Multipath is not enabled, but a packet with multipath flag on is
// received.
- if (!multipath_enabled_ && header.public_header.multipath_flag) {
+ if (header.public_header.multipath_flag) {
const string error_details =
"Received a packet with multipath flag but multipath is not enabled.";
QUIC_BUG << error_details;
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698