From user-return-12713-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Sep 16 21:01:05 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 47177 invoked from network); 16 Sep 2010 21:01:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 21:01:04 -0000 Received: (qmail 69463 invoked by uid 500); 16 Sep 2010 21:01:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 68997 invoked by uid 500); 16 Sep 2010 21:01:02 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 68984 invoked by uid 99); 16 Sep 2010 21:01:02 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 21: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 robert.melfing@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 21:00:50 +0000 Received: by wwb31 with SMTP id 31so71576wwb.5 for ; Thu, 16 Sep 2010 14:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=LebKSwPWomJ6R4FmkI8lRgMBucCqhbtx+tslBYDeK3A=; b=cHQMHHrS0V5J5oJDRYOZIVHYgzMEndDUlolWMcAGXT8ezhMcwT2Nbg+puJ8h9jGKZ8 UDgdcoa6nbSONrgMpz4E+wtnicAgDZTr5sZNqdtfUwNBFx+5Vfj3KLfYrYJujH75U1ST xaY+6UCxdXTxVdRRuiIZHJIhNMgayZ1e/STwU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=etUjoJ84DFAq9UJkxxgaYwD3sJaGXhKc70QmDVWUuxPX7GyICyJEQfUs7BMBhJWT8G jZkPZOnLLIVa85C/S+IR7YJEIGO+9Kn3BiLyDjEudGd9/b3GJxCq2wf1hSjPEdSY15/H J8AvVDagGa3Ttdi/FjvrydUzTTcUZLePja134= Received: by 10.216.47.196 with SMTP id t46mr146702web.13.1284670829751; Thu, 16 Sep 2010 14:00:29 -0700 (PDT) Received: from [192.168.1.6] (lns-bzn-47f-62-147-132-192.adsl.proxad.net [62.147.132.192]) by mx.google.com with ESMTPS id k83sm2144717weq.14.2010.09.16.14.00.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Sep 2010 14:00:28 -0700 (PDT) Message-ID: <4C928568.2020501@gmail.com> Date: Thu, 16 Sep 2010 23:00:24 +0200 From: Robert Melfing User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: ExternalProcesses issue Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, [and thanks for the great job!] Quick one about External Processes: I've done a dummy java program to test this feature. An infinite loop on readline() to printout what's passed in. But when I either stop or restart couchdb, my java process is never killed and keeps running. Should the external process exit() after each request? Or can it stay running, waiting for the next request? env: Ubuntu Karmic, couch 1.0.1 local.ini: [external] test=java -jar /TestExtrernalProcesses/dist/TestExtrernalProcesses.jar [httpd_db_handlers] _test = {couch_httpd_external, handle_external_req, <<"test">>} cheers, Robert