DescriptionRetry requests on reused sockets that receive ERR_EMPTY_RESPONSE.
We retry requests on ERR_CONNECTION_CLOSED in case of a close/reuse race, but
ERR_CONNECTION_CLOSED is converted to ERR_EMPTY_RESPONSE if this is a socket's
first request. Such a socket is normally not reused unless it was a preconnect
miss.
To avoid test flakiness, make the UNUSED vs UNUSED_IDLE determination not
timing-sensitive. The existing logic is compares idle_time to 0, so it's
dependent on clock granularity rather than any intentional timeout.
Add equivalent tests to HttpNetworkTransactionTest.KeepAliveConnection for
preconnect misses.
BUG=352156
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257748
Patch Set 1 #
Total comments: 12
Patch Set 2 : mmenke comments #Patch Set 3 : Use RunUntilIdle() #Patch Set 4 : Make UNUSED vs UNUSED_IDLE determination not timing-sensitive. #
Total comments: 2
Patch Set 5 : Indentation #
Messages
Total messages: 17 (0 generated)
|