summaryrefslogtreecommitdiffstats
path: root/media/PRESUBMIT_test.py
diff options
context:
space:
mode:
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 05:33:41 +0000
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 05:33:41 +0000
commit8aacaf38e85c45876c72ea77e36ef17e5ab69c26 (patch)
tree5a980925829be727f89f6a761b034ecae63166dd /media/PRESUBMIT_test.py
parente03db65097f4ae2cd0cfcde1a38eae822a0b943d (diff)
downloadchromium_src-8aacaf38e85c45876c72ea77e36ef17e5ab69c26.zip
chromium_src-8aacaf38e85c45876c72ea77e36ef17e5ab69c26.tar.gz
chromium_src-8aacaf38e85c45876c72ea77e36ef17e5ab69c26.tar.bz2
Http cache: Implement a timeout for the cache lock.
The cache has a single writer / multiple reader lock to avoid downloading the same resource n times. However, it is possible to block many tabs on the same resource, for instance behind an auth dialog. This CL implements a 20 seconds timeout so that the scenario described in the bug results in multiple authentication dialogs (one per blocked tab) so the user can know what to do. It will also help with other cases when the single writer blocks for a long time. The timeout is somewhat arbitrary but it should allow medium size resources to be downloaded before starting another request for the same item. The general solution of detecting progress and allow readers to start before the writer finishes should be implemented on another CL. BUG=6697, 46104 Review URL: https://codereview.chromium.org/345643003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/PRESUBMIT_test.py')
0 files changed, 0 insertions, 0 deletions