Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 86970 invoked from network); 4 Oct 2010 15:50:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 15:50:52 -0000 Received: (qmail 63279 invoked by uid 500); 4 Oct 2010 15:50:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 62939 invoked by uid 500); 4 Oct 2010 15:50:49 -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 62931 invoked by uid 99); 4 Oct 2010 15:50:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 15:50:49 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 15:50:42 +0000 Received: by gwj20 with SMTP id 20so2323745gwj.11 for ; Mon, 04 Oct 2010 08:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=pnHG25Otm/V26oBHMUClYQKDI1K5592/u6xJ6dHchD0=; b=ihtcb4yyOXYZfcilZ6wb7EhO6MQPEuagccL8IDSW2Yg1WUIhnvcQKarQk+B4x/9Stx bytP6cZBs852TusYXzMwPOcGlwzVWpirB0jDZ0QB3o1Ajut1Sa34NUFPpcQEwh3GpPT4 NviS2FP1l66sJFzcqyKZmT1wWNHL+S8d75aFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=bn+8PxMgCh2oCrcUtLJN1Zp2y5UkQTMp21HsoUdQ4ZhnRni6an2HAK//Hl3Y6cBjA9 PwqUPrPHo3qRFsVAm+52c6LDMWXgCfHhHS/MKy3QTiNkRSybCK8aTjPXYTWWUk8NtHFF z8bu8D43+iBBjTYKBnm++JhhymLWwe/CtaIjY= Received: by 10.231.152.143 with SMTP id g15mr10280456ibw.76.1286207420326; Mon, 04 Oct 2010 08:50:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Mon, 4 Oct 2010 08:49:40 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Mon, 4 Oct 2010 11:49:40 -0400 Message-ID: Subject: Re: New Externals: Implemented with tests To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Oct 3, 2010 at 5:59 PM, Benoit Chesneau wrote= : > On Sat, Oct 2, 2010 at 3:18 AM, Paul Davis = wrote: >> Most odd. Individual tests are run in independent processes so the >> scope of interaction should be confined to a single *.t file. 170 is >> pretty tiny in what it does. Once it gets to test 19, the remaining >> tests are all asserts on a record. Let me know if you find anything >> else. >> >> Paul >> >> On Fri, Oct 1, 2010 at 8:30 PM, Randall Leeds = wrote: >>> Make check hangs at 19/? in 170-os-daemons.t for me. Running it >>> individually worked. >>> Could be some conflict with an early test? Seems strange. No time to >>> investigate now. >>> >>> Thanks for this awesome work, Paul. >>> >>> -Randall >>> >>> On Fri, Oct 1, 2010 at 15:43, Paul Davis = wrote: >>>> Hey everyone, >>>> >>>> I've gone and implemented the two features discussed in [1] with the >>>> goal of using them to replace the current _externals API. The code is >>>> up at [2]. I'd like to get a couple people to build and run the tests >>>> (./bootstrap && ./configure && make dev && make check) to make sure >>>> everything is sane. Let me know if you have any comments or >>>> suggestions. If a couple people report back with successful test runs >>>> I'll probably push this to trunk in the next couple days barring >>>> someone raising a serious objection. >>>> >>>> There's also a blog post at [3] that describes the current situation >>>> with words and stuff. >>>> >>>> Paul Davis >>>> >>>> [1] http://mail-archives.apache.org/mod_mbox/couchdb-dev/201009.mbox/%= 3CAANLkTinv+-eqqraCjajVxzXA=3DsoyCo_Pk1cs8MMCVXHT@mail.gmail.com%3E >>>> [2] http://github.com/davisp/couchdb/tree/new_externals >>>> [3] http://davispj.com/2010/09/26/new-couchdb-externals-api.html >>>> >>> >> > > Heh looks like my old proxy handler. Really like the idea. Reading the > code I see you're not rewriting the Location header =A0when you send the > response neither cleaning the Host header is there any reason of this > ? I saw lot of problem due to this especially with javascript code. I > may have a patch for that. > > About removing _externals, I'm not sure. Maybe keeping old one > available or better if possible reusing your new os process handling . > One thing I like with using io is that you don't need http semantic > parsing, just a json parser which ease some codes. I can do a script > in sh . Also less latency sometimes. > > make check is ok on my mac. I will do more test during the day. > > - beno=EEt > I'm not going to delete the current _externals implementation right away. I would plan on keeping it for at least one minor release to make sure that people have time to test and switch to the new protocol. For people that have a good reason to keep using the stdio protocol I plan on writing a shim that mimics the current API as close as possible so that we don't lose any functionality. I'm not entirely sure about rewriting headers. For the most part I wanted to make sure that I wasn't modifying headers in anyway. If there's a specific set of headers that need to be handled then we can take a look at adding that in. HTH, Paul Davis