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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 2065463002: Always send queued retransmission packets, because of write blocked socket, once the socket gets un… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 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_flags.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 46a5029bf4b0eb82d64738fd1f0c9ca3c9adb166..d3c48a19cf2f0a73c43e00b79a2541ca6e243709 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -565,7 +565,8 @@ bool QuicSentPacketManager::OnPacketSent(
<< "Cannot send empty packets.";
if (delegate_ == nullptr && original_packet_number != 0) {
- if (!pending_retransmissions_.erase(original_packet_number)) {
+ if (!pending_retransmissions_.erase(original_packet_number) &&
+ !FLAGS_quic_always_write_queued_retransmissions) {
QUIC_BUG << "Expected packet number to be in "
<< "pending_retransmissions_. packet_number: "
<< original_packet_number;
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698