Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA267919F for ; Wed, 22 Feb 2012 03:37:41 +0000 (UTC) Received: (qmail 50045 invoked by uid 500); 22 Feb 2012 03:37:41 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 49988 invoked by uid 500); 22 Feb 2012 03:37:40 -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 49933 invoked by uid 99); 22 Feb 2012 03:37:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 03:37:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dionne@dionne-associates.com designates 67.222.38.55 as permitted sender) Received: from [67.222.38.55] (HELO oproxy5-pub.bluehost.com) (67.222.38.55) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Feb 2012 03:30:31 +0000 Received: (qmail 19845 invoked by uid 0); 22 Feb 2012 03:30:09 -0000 Received: from unknown (HELO host183.hostmonster.com) (74.220.207.183) by cpoproxy2.bluehost.com with SMTP; 22 Feb 2012 03:30:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dionne-associates.com; s=default; h=Mime-Version:To:Message-Id:Date:Subject:Content-Transfer-Encoding:Content-Type:From; bh=RlAFQ2XonrLiPDkslcNplOniv0zCO5h58a6f80xcGYA=; b=TE6AjTNKxGB3JfPiHXw/ClalIQd/6fab0QKLb/8TJIlKZC0lyy4kS1nIkSMfoG6WI53sfezeQToF98T3CsRlgU6LDgpWBJT08v1/B/Rs2pdEtWYfYYDu9fSsD6hCB5Uq; Received: from adsl-99-30-232-124.dsl.wlfrct.sbcglobal.net ([99.30.232.124] helo=[192.168.1.115]) by host183.hostmonster.com with esmtpa (Exim 4.76) (envelope-from ) id 1S02u7-0005E8-RZ for dev@couchdb.apache.org; Tue, 21 Feb 2012 20:30:07 -0700 From: Bob Dionne Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: replicator Date: Tue, 21 Feb 2012 22:30:06 -0500 Message-Id: <67D0CC06-89D0-41AC-BD9C-073492015311@dionne-associates.com> To: dev@couchdb.apache.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Identified-User: {2551:host183.hostmonster.com:dionneas:dionne-associates.com} {sentby:smtp auth 99.30.232.124 authed with dionne@dionne-associates.com} X-Virus-Checked: Checked by ClamAV on apache.org Hi Filipe, I'm seeing an issue in the replicator. This anonymous function [1] is = throwing function_clause errors as it doesn't handle codes 400-500 that = might occur in [2,3]. I have a rough idea how to fix it but I'm not sure = whether I should handle it in replicator_httpc or up in the callback. = Does this ring a bell? Opinions? Cheers, Bob [1] = https://github.com/bdionne/couchdb/blob/master/src/couch_replicator/src/co= uch_replicator_api_wrap.erl#L335 [2] = https://github.com/bdionne/couchdb/blob/master/src/couch_replicator/src/co= uch_replicator_httpc.erl#L90 [3] = https://github.com/bdionne/couchdb/blob/master/src/couch_replicator/src/co= uch_replicator_httpc.erl#L111=