_revs_diff call doesn't timeout on getting stuck
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
### Issue
PouchDB _revs_diff call doesn't timeout if it gets stuck and stops the replication process. Until this request times out nothing else moves.
### Info
- Environment: Node v16.17.0, PouchDB v7.3.1
- Platform: Android
- Adapter: PouchDB adapter cordova sqlite: v2.0.8
- Server: CouchDB v3.2.2
### Reproduce
I am unable to reproduce the issue right now because we had to wipe off the CouchDB databases but I have posted screenshots below which might help. Most likely there was an issue with CouchDB which got fixed after wiping the databases. See the original issue here: apache/couchdb#4373
Even if some request gets stuck I feel PouchDB should timeout and either retry that request or continue with the rest of the replication process. It took 18 minutes for the stuck request to timeout! In another case it responded after almost 15 seconds so may be it could have just timed out in lesser time. Can we control this timeout?
I have posted two screenshots below which sort of show the behaviour.


Contributor guide
Assessment
This issue has not been assessed yet.