Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 57101 invoked from network); 30 Apr 2008 07:10:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2008 07:10:44 -0000 Received: (qmail 45013 invoked by uid 500); 30 Apr 2008 07:10:45 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 44706 invoked by uid 500); 30 Apr 2008 07:10:44 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 44524 invoked by uid 99); 30 Apr 2008 07:10:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 00:10:42 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 07:09:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACDE3234C10C for ; Wed, 30 Apr 2008 00:06:55 -0700 (PDT) Message-ID: <2089845709.1209539215706.JavaMail.jira@brutus> Date: Wed, 30 Apr 2008 00:06:55 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Commented: (COUCHDB-40) Transfer-Encoding: Chunked on HTTP 1.0 request In-Reply-To: <1745229965.1208291927984.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593246#action_12593246 ] Benoit Chesneau commented on COUCHDB-40: ---------------------------------------- Sound goof, did the patch have been tested on all http1/0 proxy ? About changes in javascript : >From the rfc 1945 who define http/1.0 : A valid Content-Length is required on all HTTP/1.0 POST requests. An HTTP/1.0 server should respond with a 400 (bad request) message if it cannot determine the length of the request message's content. Proxies like nginx are very strict about it. More over nginx don't accept in proxy mode the POST/PUT request without body like a quick search in google would told you. About content-length : When an Entity-Body is included with a message, the length of that body may be determined in one of two ways. If a Content-Length header field is present, its value in bytes represents the length of the Entity-Body. Otherwise, the body length is determined by the closing of the connection by the server. So indeed there is no need to bufferize the response if you close the connection at the end. Just better to do it when you can it help the client to optimize the connection. So in the case you could do it like in send_json why not ? All this stuff need more tests anyway I already provided some results on ml, did you see them ? > Transfer-Encoding: Chunked on HTTP 1.0 request > ---------------------------------------------- > > Key: COUCHDB-40 > URL: https://issues.apache.org/jira/browse/COUCHDB-40 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Environment: Irrelevant > Reporter: Kore Nordmann > Attachments: compat_http10_couchdb_r649048.diff, mochiweb_chunking_http10.diff, mochiweb_chunking_http10_2.diff, patch-share_www_script_jquery_couch_js, patch-src_couchdb_couch_httpd_erl > > > The following request: > > DELETE /test HTTP/1.0 > > Host: localhost > is responded like: > > HTTP/1.0 404 Object Not Found > > Transfer-Encoding: chunked > > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > > Date: Tue, 15 Apr 2008 20:39:07 GMT > > Content-Type: text/plain;charset=utf-8 > > > > 28 > > {"error":"not_found","reason":"missing"} > > 0 > while chunked transfer-encoding is only supported by HTTP 1.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.