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

Unified Diff: net/quic/quic_connection.cc

Issue 2158263003: Landing Recent QUIC changes until 7/18/2016 11:21:53 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Running flag flipping script and rebase to master Created 4 years, 5 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_alarm.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 8739725185aa98ce81e7bebfe9822b4f41ec098d..0b4108df94e6588cfc1696f3e1479a81217d889f 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1091,8 +1091,7 @@ void QuicConnection::MaybeQueueAck(bool was_missing) {
clock_->ApproximateNow() +
0.125 * sent_packet_manager_->GetRttStats()->min_rtt();
if (!ack_alarm_->IsSet() || ack_alarm_->deadline() > ack_time) {
- ack_alarm_->Cancel();
- ack_alarm_->Set(ack_time);
+ ack_alarm_->Update(ack_time, QuicTime::Delta::Zero());
}
} else {
ack_queued_ = true;
@@ -1158,8 +1157,7 @@ void QuicConnection::MaybeSendInResponseToPacket() {
// Now that we have received an ack, we might be able to send packets which
// are queued locally, or drain streams which are blocked.
if (defer_send_in_response_to_packets_) {
- send_alarm_->Cancel();
- send_alarm_->Set(clock_->ApproximateNow());
+ send_alarm_->Update(clock_->ApproximateNow(), QuicTime::Delta::Zero());
} else {
WriteAndBundleAcksIfNotBlocked();
}
@@ -1834,8 +1832,7 @@ void QuicConnection::OnHandshakeComplete() {
// complete with the server.
if (perspective_ == Perspective::IS_CLIENT && !ack_queued_ &&
ack_frame_updated()) {
- ack_alarm_->Cancel();
- ack_alarm_->Set(clock_->ApproximateNow());
+ ack_alarm_->Update(clock_->ApproximateNow(), QuicTime::Delta::Zero());
}
}
@@ -2204,8 +2201,7 @@ void QuicConnection::SetTimeoutAlarm() {
min(deadline, stats_.connection_creation_time + handshake_timeout_);
}
- timeout_alarm_->Cancel();
- timeout_alarm_->Set(deadline);
+ timeout_alarm_->Update(deadline, QuicTime::Delta::Zero());
}
void QuicConnection::SetPingAlarm() {
« no previous file with comments | « net/quic/quic_alarm.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698