iriscouch / follow

Very stable, very reliable, NodeJS CouchDB _changes follower
Apache License 2.0
393 stars 82 forks source link

Hangs and never resumes #94

Open joeledwards opened 6 years ago

joeledwards commented 6 years ago

I have run into a situation where changes stop streaming and follow never resumes. I witness this regularaly when running the following (takes some time to hang):

npx @buzuli/ops-tools couch-follow -i -F https://replicate.npmjs.com

I am monitoring error events and never see any. Perhaps running this on a laptop which will sleep/wake and switch networks regularly is related. My understanding is that follow is expected to handle this sort of behavior cleanly.

Perhaps there are other events I can hook into which might help me debug next time I run into this issue?