IndexedDB: Cancel transaction inactivity timer on Commit() arrival
commitd71e9bcb98c8097b6192f45af7ac663a2ccc255d
authorjsbell <jsbell@chromium.org>
Tue, 26 Aug 2014 23:43:17 +0000 (26 16:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 Aug 2014 23:46:00 +0000 (26 23:46 +0000)
treeef8c26b2db070db2fe09304f5669bd23aff65613
parent94a4210d30dfa1201a818dc76d6a7afda1baf47d
IndexedDB: Cancel transaction inactivity timer on Commit() arrival

After processing a batch of requests, our IDB transaction initiates an
inactivity timer; if the timer fires before any further requests
arrive from the front-end we assume the front-end is wedged and abort
the transaction. The timer is be stopped on any new request, including
a signal to commit or abort. During the introduction of blobs, the
"stop timer on commit signal" ended towards the end of the commit
flow, but it should be towards the start so it doesn't fire if the
back-end is busy.

Speculative fix for frequent timeouts of W3C web-platform-tests seen
on slow bots.

R=cmumford@chromium.org

Review URL: https://codereview.chromium.org/502643003

Cr-Commit-Position: refs/heads/master@{#292035}
content/browser/indexed_db/indexed_db_transaction.cc