POST _revs_diff request stuck without timing out
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
Hi, I have a setup consisting of CouchDB v3.2.2 and I am using PouchDB v7.3.1 in my mobile app.
I am noticing that `_revs_diff` requests are often getting stuck and taking several seconds, 15 seconds or more. See screenshots.
Within the same session I can see other _revs_diff requests which respond in less than a second and from another device they are okay. I am a bit clueless because I am not able to create a reproducible example as this is happening occasionally when I keep PUTing to the app DB.
In one case the request got stuck in "Initial connection" for 18 minutes and till it timed out no syncing happened (maybe this should be filed in PouchDB repo).
What could be going on?
Thanks!


Contributor guide
Research direction
Start with the _revs_diff requests during repeated PUTs, comparing the affected CouchDB session with fast requests from another device. Check whether the delay is in the client's “Initial connection” phase or server handling; done means identifying a reproducible cause and defining the expected timeout behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang, javascript
- Domain
- databases, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100