[ 
https://issues.apache.org/jira/browse/COUCHDB-3158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514791#comment-15514791
 ] 

ASF GitHub Bot commented on COUCHDB-3158:
-----------------------------------------

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 <iil...@apache.org>
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

----


> 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)

Reply via email to