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

Christopher Lenz commented on COUCHDB-55:
-----------------------------------------

You get the same behavior when not using chunked encoding in the 
request.CouchDB does not read the complete request body before dispatching 
requests to request handlers. Thus you can get the 404 response before even 
sending the body.

MochiWeb should automatically close the connection in this case though, so that 
the unread data doesn't corrupt the next request.

> Mochi thinks request is over when it's not. (delayed packets)
> -------------------------------------------------------------
>
>                 Key: COUCHDB-55
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-55
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>         Environment: Ubuntu 8.04
> CouchDB trunk
>            Reporter: Jeff Davey
>            Assignee: Christopher Lenz
>
> When the request is broken up as such:
> Packet #1
> -----------
> PUT /db/doc HTTP/1.1
> Transfer-Encoding:chunked
> Content-Type:application/json
> Host: localhost
> Packet #2
> ------------------
> 1234
> {
>   "ima" : "doc"
> }
> 0
> Mochi ignores the fact that Transfer-Encoding: chunked is set, and gives a 
> 500 error after packet #1 before it receives packet #2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to