Github user rnewson commented on the pull request:
https://github.com/apache/couchdb-couch-replicator/pull/19#issuecomment-145484521
ok, here's how to make mochi send a Connection:close, you need to terminate
request handling before we call json_body() (or equivalent). You can achieve
that with `PUT /db/doc?open_revs=foo` as the JSON_DECODE of 'foo' will throw.
The response will include a Connection:close header, which means any body bytes
unread are discarded.
All this is telling us we need a higher level abstraction for our http code.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---