Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 55877 invoked from network); 31 Oct 2003 13:24:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Oct 2003 13:24:58 -0000 Received: (qmail 77716 invoked by uid 500); 31 Oct 2003 13:24:39 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 77688 invoked by uid 500); 31 Oct 2003 13:24:39 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 77604 invoked from network); 31 Oct 2003 13:24:38 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 31 Oct 2003 13:24:38 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AFZGY-00073T-00 for ; Fri, 31 Oct 2003 14:24:38 +0100 Mail-Followup-To: apreq-dev@httpd.apache.org X-Injected-Via-Gmane: http://gmane.org/ To: apreq-dev@httpd.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFZGX-00073L-00 for ; Fri, 31 Oct 2003 14:24:37 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AFZGX-0006dU-00 for ; Fri, 31 Oct 2003 14:24:37 +0100 From: Joe Schaefer Subject: Re: cvs commit: httpd-apreq-2/build xsbuilder.pl Date: 31 Oct 2003 08:24:37 -0500 Lines: 32 Message-ID: References: <20031030044552.83594.qmail@minotaur.apache.org> <3FA0B411.7050402@stason.org> <3FA15443.50007@stason.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Randy Kobes writes: [...] > Until things are arranged so that all the needed APR::* can > be used outside of mp2, I've been looking at the perl glue > in a CGI context, just to see what's involved. This entails > having available mod_perl.so as an so/dll. Although this may > not be the best model, I tried the following, just to see if > it works: Cool. > - make an Apreq::Base, consisting of a Base.xs that just > made available apr_initialize() and apr_terminate2(). > - make an Apreq::Request which loads Apreq::Base and has > a new() method to create an Apreq::Request object by > - calling apr_initialize() > - creating a $p = APR::Pool->new() > - creating a $req = Apache::Request->new($p, @_) > - make an Apreq::Cookie which similarly passes a $p pool > in as the $env within Apache/Cookie.pm. > - I'm not sure about this, but I also made a DESTROY sub > which calls apr_terminate2(). initialize/terminate are per-process events, so calling them from the object ctor/dtor is probably a mistake. IMO those calls probably belong inside BEGIN and END blocks within APR.pm. If that were so, Base.xs would be unnecessary, right? -- Joe Schaefer