Index: net/quic/quic_stream_factory.cc |
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
index 832f36f862c8da075365e66785b7e8b4bb033e28..e70bb684c76439e5051596040d7a2a58309a4503 100644 |
--- a/net/quic/quic_stream_factory.cc |
+++ b/net/quic/quic_stream_factory.cc |
@@ -594,6 +594,7 @@ |
int threshold_public_resets_post_handshake, |
int threshold_timeouts_with_open_streams, |
int socket_receive_buffer_size, |
+ bool delay_tcp_race, |
int max_server_configs_stored_in_properties, |
bool close_sessions_on_ip_change, |
bool disable_quic_on_timeout_with_open_streams, |
@@ -642,6 +643,7 @@ |
threshold_public_resets_post_handshake_( |
threshold_public_resets_post_handshake), |
socket_receive_buffer_size_(socket_receive_buffer_size), |
+ delay_tcp_race_(delay_tcp_race), |
yield_after_packets_(kQuicYieldAfterPacketsRead), |
yield_after_duration_(QuicTime::Delta::FromMilliseconds( |
kQuicYieldAfterDurationMilliseconds)), |
@@ -738,7 +740,7 @@ |
base::TimeDelta QuicStreamFactory::GetTimeDelayForWaitingJob( |
const QuicServerId& server_id) { |
- if (require_confirmation_) |
+ if (!delay_tcp_race_ || require_confirmation_) |
return base::TimeDelta(); |
int64_t srtt = |
1.5 * GetServerNetworkStatsSmoothedRttInMicroseconds(server_id); |