From dev-return-11312-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 16 11:01:08 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 96733 invoked from network); 16 Aug 2010 11:01:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 11:01:08 -0000 Received: (qmail 60847 invoked by uid 500); 16 Aug 2010 11:01:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59715 invoked by uid 500); 16 Aug 2010 11:01:04 -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 58574 invoked by uid 99); 16 Aug 2010 11:01:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 11:01:02 +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 bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 11:00:54 +0000 Received: by iwn4 with SMTP id 4so2089348iwn.11 for ; Mon, 16 Aug 2010 04:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=OMPBthkXCOyFGub0AkJ9IOwElbajjhi6Osemb5VcC/I=; b=XE5vtpCC6dWMJ0/skBM8VBwTYaC8GHeDMBoKE5OOgEsvcsfGUFAbuT8FsMfVVmscQH AKyrU5/YVyBIKpfbu79MSXz+q4IwoW3eZ7eboZ19zG20IpZfRDMxHjsnXXChvwwEQWvQ 9FJy7gt2DbGai9BwKbjCGx5mv45YkHR/97CC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NJQDKtD+emdID0+nB/YygK0Mk/DagAf/CcdfxHvqCSBzV16o7sQ8Foi1gndqCoYxrn z5Id//ZxuUWzTto43MGpgveKhcBw8ZoXQp8AHZGnHQpKaRM507eMmNSXp28kBa4a1XkH 9qIcOhUykdT9lRTh4WHs4MlVCmKM9HGWgSX/I= MIME-Version: 1.0 Received: by 10.231.185.142 with SMTP id co14mr5163962ibb.97.1281956433720; Mon, 16 Aug 2010 04:00:33 -0700 (PDT) Received: by 10.231.169.18 with HTTP; Mon, 16 Aug 2010 04:00:33 -0700 (PDT) Date: Mon, 16 Aug 2010 13:00:33 +0200 Message-ID: Subject: 160-* etap test failure from time to time From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org So I've found why 160- test fails from time to time: Vhosts are loaded at startup when creating the mochiweb loop. So it only get depending how fast is your machine 1 result and maybe 0 for really fast machines since the ini isn't defined. Which also make it impossible to change vhosts on the fly apparently (via POST on /_config). To solve that and allows us to change/add vhosts on the fly I would like to change the code and put all vhosts handling in a gen_server keeping states etc so it could be possible to changes vhosts in memory depending on ini change. Also it would make vhost handling pluggable so someone could imagine to create them via doc posted in a db. What do you think ? - benoit