[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-10-05 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on COUCHDB-3158:
--

Commit 570376b47cf661804891597329b4b662fafb6a74 in couchdb-couch's branch 
refs/heads/master from ILYA Khlopotov
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=570376b ]

Adding test suite for trancated _update

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. 
> {{//_design//_update//}}
> 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)


[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-10-05 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on COUCHDB-3158:
-

Github user asfgit closed the pull request at:

https://github.com/apache/couchdb-couch/pull/200


> 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. 
> {{//_design//_update//}}
> 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)


[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-10-05 Thread ASF subversion and git services (JIRA)

[ 
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. 
> {{//_design//_update//}}
> 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)


[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-10-05 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on COUCHDB-3158:
-

Github user asfgit closed the pull request at:

https://github.com/apache/couchdb-chttpd/pull/140


> 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. 
> {{//_design//_update//}}
> 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)


[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-09-22 Thread ASF GitHub Bot (JIRA)

[ 
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 
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. 
> {{//_design//_update//}}
> 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)


[jira] [Commented] (COUCHDB-3158) Fix a crash when connection closes for _update

2016-09-22 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on COUCHDB-3158:
-

GitHub user iilyak opened a pull request:

https://github.com/apache/couchdb-couch/pull/200

Adding test suite for trancated _update

Test suite for https://github.com/apache/couchdb-chttpd/pull/140

COUCHDB-3158

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/cloudant/couchdb-couch 
69425-handle-truncated-req-in-recv_body

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/couchdb-couch/pull/200.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 #200


commit 21c374f1dc049d35089092fc513d226f6580a3a6
Author: ILYA Khlopotov 
Date:   2016-09-22T23:11:02Z

Adding test suite for trancated _update

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. 
> {{//_design//_update//}}
> 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)