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

Unified Diff: net/quic/quic_connection.cc

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Added read/write socket error tests. Created 4 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
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index a3298bcc70abe1439d99a88dc9061cc66e090f64..d94f429c4f0e9569d53fda53292ac2b2babb38b0 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -152,7 +152,7 @@ class PingAlarm : public QuicAlarm::Delegate {
explicit PingAlarm(QuicConnection* connection) : connection_(connection) {}
QuicTime OnAlarm() override {
- connection_->SendPing();
+ connection_->SendPing(false);
return QuicTime::Zero();
}
@@ -1822,8 +1822,8 @@ PeerAddressChangeType QuicConnection::DeterminePeerAddressChangeType() {
return UNKNOWN;
}
-void QuicConnection::SendPing() {
- if (retransmission_alarm_->IsSet()) {
+void QuicConnection::SendPing(bool force) {
+ if (!force && retransmission_alarm_->IsSet()) {
return;
}
packet_generator_.AddControlFrame(QuicFrame(QuicPingFrame()));

Powered by Google App Engine
This is Rietveld 408576698