[
https://issues.apache.org/jira/browse/COUCHDB-3158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15549336#comment-15549336
]
ASF subversion and git services commented on COUCHDB-3158:
----------------------------------------------------------
Commit 3868099565dbf8eb7851c50a2e2940f078aea14e in couchdb-chttpd's branch
refs/heads/master from ILYA Khlopotov
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=3868099 ]
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
> Fix a crash when connection closes for _update
> -----------------------------------------------
>
> Key: COUCHDB-3158
> URL: https://issues.apache.org/jira/browse/COUCHDB-3158
> Project: CouchDB
> Issue Type: Bug
> Reporter: ILYA
> Attachments: acra
>
>
> There is a crash when the client issue an update request and closes the
> connection.
> {{/<dbname>/_design/<desing_docid>/_update/<updater_id>/<doc_id>}}
> The resulting crash dump is:
> {code}
> req_err(3443101085) unknown_error : normal
> [<<"mochiweb_request:recv/3 L180">>,
> <<"mochiweb_request:stream_unchunked_body/4 L540">>,
> <<"mochiweb_request:recv_body/2 L214">>,
> <<"chttpd_external:-json_req_obj/4-lc$^0/1-0-/4 L67">>,
> <<"chttpd_external:-json_req_obj/4-lc$^0/1-0-/4 L67">>,
> <<"chttpd_external:json_req_obj/4 L67">>,
> <<"chttpd_show:send_doc_update_response/6 L119">>,
> <<"chttpd:process_request/1 L293">>]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)