Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 65234 invoked from network); 17 Apr 2008 20:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 20:36:30 -0000 Received: (qmail 75805 invoked by uid 500); 17 Apr 2008 20:36:31 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 75757 invoked by uid 500); 17 Apr 2008 20:36:31 -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 75748 invoked by uid 99); 17 Apr 2008 20:36:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 13:36:31 -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; Thu, 17 Apr 2008 20:35:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7BFCB234C0DB for ; Thu, 17 Apr 2008 13:33:21 -0700 (PDT) Message-ID: <1518839930.1208464401506.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 13:33:21 -0700 (PDT) From: "Shahar Evron (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Created: (COUCHDB-42) Sending "Content-length: 0" in PUT requests causes connection to close MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sending "Content-length: 0" in PUT requests causes connection to close ---------------------------------------------------------------------- Key: COUCHDB-42 URL: https://issues.apache.org/jira/browse/COUCHDB-42 Project: CouchDB Issue Type: Bug Components: HTTP Interface Environment: Linux/Gentoo i386, glibc 2.7 Reporter: Shahar Evron CouchDb built from trunk rev. 649048 When sending a PUT request with no body and "Content-length: 0" header, the connection is closed by the HTTP server after the response is received. This happens when creating a new DB for example (no body is sent). For example from telnet: {code} $ telnet localhost 5984 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. PUT /test_db HTTP/1.1 Host: localhost HTTP/1.1 201 Created Transfer-Encoding: chunked Server: MochiWeb/1.0 (Any of you quaids got a smint?) Date: Thu, 17 Apr 2008 20:33:40 GMT Content-Type: text/plain;charset=utf-8 b {"ok":true} 0 {code} In the above example the connection is not closed and all is fine. However: {code} PUT /test_db2 HTTP/1.1 Host: localhost Content-length: 0 HTTP/1.1 201 Created Transfer-Encoding: chunked Server: MochiWeb/1.0 (Any of you quaids got a smint?) Date: Thu, 17 Apr 2008 20:33:59 GMT Content-Type: text/plain;charset=utf-8 b {"ok":true} 0 Connection closed by foreign host. {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.