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

Issue 2953983003: Adds cache lock timeout handling after finishing headers phase. (Closed)

Created:
3 years, 6 months ago by shivanisha
Modified:
3 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds cache lock timeout handling after finishing headers phase. Since now there is parallel validation of requests but the cache lock still applies when the writer transaction is reading the response body we need to have a lock timeout handling when a transaction is waiting in the done_headers_queue as well. This Cl also removes the unused RestartInfo structure definition. BUG=735998 Review-Url: https://codereview.chromium.org/2953983003 Cr-Commit-Position: refs/heads/master@{#482148} Committed: https://chromium.googlesource.com/chromium/src/+/bc3b71b348b6073d188bb815443190ec73bf84a3

Patch Set 1 #

Total comments: 8

Patch Set 2 : Feedback addressed #

Patch Set 3 : Changed bypass lock condition and renamed AddTimeoutHandler #

Total comments: 3

Patch Set 4 : dcheck added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -52 lines) Patch
M net/http/http_cache.h View 1 2 chunks +9 lines, -1 line 0 comments Download
M net/http/http_cache.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 2 6 chunks +12 lines, -10 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 8 chunks +66 lines, -40 lines 0 comments Download
M net/http/http_cache_unittest.cc View 2 chunks +133 lines, -0 lines 0 comments Download
M net/http/mock_http_cache.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/mock_http_cache.cc View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
shivanisha
Randy, PTAL (P1 fix), Thanks!
3 years, 6 months ago (2017-06-23 01:34:09 UTC) #4
Randy Smith (Not in Mondays)
This basic approach looks fine to me. The issues I care about below for this ...
3 years, 6 months ago (2017-06-23 17:38:02 UTC) #7
shivanisha
Feedback addressed, PTAL, Thanks! https://codereview.chromium.org/2953983003/diff/1/net/http/http_cache.h File net/http/http_cache.h (right): https://codereview.chromium.org/2953983003/diff/1/net/http/http_cache.h#newcode201 net/http/http_cache.h:201: void SimulateCacheLockTimeoutAfterHeaders() { On 2017/06/23 ...
3 years, 6 months ago (2017-06-23 19:16:08 UTC) #8
shivanisha
This patch fixes the condition for bypassing timer for testing and renames AddTimeoutHandler to AddCacheLockTimeoutHandler. ...
3 years, 6 months ago (2017-06-23 20:03:07 UTC) #11
Randy Smith (Not in Mondays)
LGTM. Thanks! https://codereview.chromium.org/2953983003/diff/40001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2953983003/diff/40001/net/http/http_cache_transaction.cc#newcode1145 net/http/http_cache_transaction.cc:1145: if ((bypass_lock_for_test_ && next_state_ == STATE_ADD_TO_ENTRY_COMPLETE) || ...
3 years, 6 months ago (2017-06-23 20:20:47 UTC) #12
shivanisha
On 2017/06/23 at 20:20:47, rdsmith wrote: > LGTM. Thanks! > > https://codereview.chromium.org/2953983003/diff/40001/net/http/http_cache_transaction.cc > File net/http/http_cache_transaction.cc ...
3 years, 6 months ago (2017-06-23 20:28:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2953983003/60001
3 years, 6 months ago (2017-06-24 06:05:39 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-24 07:21:28 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bc3b71b348b6073d188bb8154431...

Powered by Google App Engine
This is Rietveld 408576698