Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 90104 invoked from network); 10 Apr 2010 19:38:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 19:38:56 -0000 Received: (qmail 96690 invoked by uid 500); 10 Apr 2010 19:38:55 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 96638 invoked by uid 500); 10 Apr 2010 19:38:55 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 96630 invoked by uid 99); 10 Apr 2010 19:38:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 19:38:55 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 19:38:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3AJWh0j009217 for ; Sat, 10 Apr 2010 15:32:43 -0400 (EDT) Message-ID: <933098.4461270927963572.JavaMail.jira@thor> Date: Sat, 10 Apr 2010 15:32:43 -0400 (EDT) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-730) Pull replication confuses mochiweb keep-alive In-Reply-To: <13310282.4441270927963108.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Leeds updated COUCHDB-730: ---------------------------------- Attachment: replication-keepalive.patch > Pull replication confuses mochiweb keep-alive > --------------------------------------------- > > Key: COUCHDB-730 > URL: https://issues.apache.org/jira/browse/COUCHDB-730 > Project: CouchDB > Issue Type: Bug > Components: Replication > Affects Versions: 0.10.1, 0.11 > Reporter: Randall Leeds > Attachments: replication-keepalive.patch > > > MochiWeb closes a request connection if the headers indicate the presence of a body with non-zero length but the body is never read by the application. Couch sends a body with the atom "true" in a POST to _ensure_full_commit before saving replication checkpoints, but a remote Couch will not read this body. As a result, MochiWeb closes the request and all pipelined requests for this host must be retried by couch_rep_httpc / ibrowse. > I don't know if the body = true was a holdover from a quirk with an older MochiWeb, lhttpc (didn't couch used to use this?) or something else, but simply removing it does the trick. > Patch attached. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira