GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/140
Handle disconnect when receiving body
When any error happen on an underlying socket mochiweb uses
exit(normal). Add catch for exit:normal and convert it to
exit({bad_request, <<"Incomplete">>}).
COUCHDB-3158
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd
69425-handle-truncated-req-in-recv_body
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/140.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #140
----
commit bce8bf0e91948260465af6a78ae93487f57b39f3
Author: ILYA Khlopotov <[email protected]>
Date: 2016-09-22T23:19:39Z
Handle disconnect when receiving body
When any error happen on an underlying socket mochiweb uses
exit(normal). Add catch for exit:normal and convert it to
exit({bad_request, <<"Incomplete">>}).
COUCHDB-3158
----
---
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.
---