when a doc is removed from the database in the current version of the view changes index, this change is not indexed and the view change index has still the key indexed. The way to delete for now is to use include_deleted=true and push deleted doc that match the view so the deleted document can be indexed as deleted. But when the doc is purged and someone fetch the changes the view changes reader was crashing because it didn't find the doc. This workaround patch the changes reader to ignore the documents not found and simply log them.
This reverts commit 8d6f71e.
Changes connections are generally long-lived conections, keeping them in the pool limit the number of concurrent connections. This change fix it by removing them from the ranch connection ssupervisor once the changes connections are accepted.
couchdb has a tendancy to exit from anywhere (old mochiweb design). Make sure we can really recover from crashes by returning ok when it happen. We still have some logs due to ranch but that better than the old situation. side note: we are now based on latest stable branch of ranch.