Re: Closing DB handler with PerlCleanupHandler

2004-11-10 Thread Glenn Strauss
On Wed, Nov 10, 2004 at 12:51:56PM +0900, Batara Kesuma wrote: > Hi Stas, > > > 1) use Apache::DBI > > > > 2) if not, refer to: > > http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler > > http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object > >

Re: How to get a core dump

2004-11-05 Thread Glenn Strauss
On Fri, Nov 05, 2004 at 01:38:44PM +0100, Marc Gracia wrote: > So, my question is... There is any way to force apache to dump a > coredump file? I suppose I'm forgotting something but I really > desperate... On Linux, create a directory that is writable by the httpd user mkdir /var/tmp/apache-co

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Glenn Strauss
On Mon, Sep 20, 2004 at 10:53:09PM +0200, Tom Schindl wrote: > Hi, > > !please always reply to the mailing list so the thread doesn't get broken! > > well mp uses this value internally and many CPAN-Modules do so either. > Versions > > mp1 = VERSION < 1.99 > mp2 = VERSION >= 1.99 > > The real

Re: [mp2] code broken by 1.99_15 or _16 or _17-dev

2004-08-25 Thread Glenn Strauss
On Thu, Aug 26, 2004 at 08:25:05AM +1000, Carl Brewer wrote: > sub hash_post { > # this has to get called instead of read_post, as read_post() > # gobbles up the POST arguments and they're no longer available... > # and this calls read_post() :) > > # returns a hash of all the POST

Re: How to tell if there's data waiting on a NON-blocking Apache connection?

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 09:27:57PM -0700, Stas Bekman wrote: > Glenn Strauss wrote: > >The Socket.Handle property is what I think is needed so that > >APR::OS::sock_get() can be made to work on Windows, too. > >mpxs_APR__OS_sock_get() will need to special-case Windows plat

Re: How to tell if there's data waiting on a NON-blocking Apache connection?

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 02:51:06PM -0700, Stas Bekman wrote: > Glenn Strauss wrote: > >>>This is what we'd need bound to the Perl API: > >>> > >>>apr_os_sock_t fd; > >>>apr_os_sock_get((apr_os_sock_t *) &fd, (apr_socket_t *) client_soc

Re: How to tell if there's data waiting on a NON-blocking Apache connection?

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 02:09:53PM -0700, Stas Bekman wrote: > Glenn Strauss wrote: > >On Wed, Aug 18, 2004 at 12:59:51PM -0700, Ken Simpson wrote: > > > >>>the APR::Socket object is an opaque one, so it can't interoperate with > >>>any other perl mod

Re: How to tell if there's data waiting on a NON-blocking Apache connection?

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 12:59:51PM -0700, Ken Simpson wrote: > > the APR::Socket object is an opaque one, so it can't interoperate with any > > other perl modules. Have you looked if there is some C api to get the > > native socket object? There could be one (as they have for file objects), > >

Re: mod_perl2 and document_root

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 12:27:02PM -0700, Stas Bekman wrote: > Glenn Strauss wrote: > >On Wed, Aug 18, 2004 at 10:59:25AM -0700, Stas Bekman wrote: > > > >>Glenn Strauss wrote: > >> > >>>Apache caches the server_rec, so as Stas said, modifying it

Re: mod_perl2 and document_root

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 10:59:25AM -0700, Stas Bekman wrote: > Glenn Strauss wrote: > >Apache caches the server_rec, so as Stas said, modifying it affects > >things globally, and across the request. In C, if I wanted to > >local'ize the server_rec for the request,

Re: mod_perl2 and document_root

2004-08-18 Thread Glenn Strauss
On Wed, Aug 18, 2004 at 09:36:45AM -0400, Dave Della Costa wrote: > Wow, I just got back in the office and I see I sparked quite a discussion! I > had suspected that this feature was specific to the first version of mod_perl, > alas... > > A little background: what I have been trying to do is ess

Re: mod_perl2 and document_root

2004-08-17 Thread Glenn Strauss
On Tue, Aug 17, 2004 at 10:09:12PM -0700, Stas Bekman wrote: > >In Apache2, mod_userdir sets a note named "mod_userdir_user" in > >the r->notes table, so there is a way to detect if you are in a > >Userdir request (if using mod_userdir). However, that note only > >tells you the target user, not th

Re: mod_perl2 and document_root

2004-08-17 Thread Glenn Strauss
On Tue, Aug 17, 2004 at 04:45:20PM -0700, Stas Bekman wrote: > Right. The examples you've found are from mod_perl 1, Apache2 has this in > its docs: > > /** > * Retrieve the document root for this server > * @param r The current request > * @warning Don't use this! If your request went throug

Re: mod_perl2, HEAD request and Content-Length

2004-08-03 Thread Glenn Strauss
On Mon, Aug 02, 2004 at 11:55:56AM -0700, Stas Bekman wrote: [...] > Actually I the problem I saw was exactly what Boris was talking about: > The C-L header wasn't there. The test simply exercises 4 different > combinations of sending and not sending C-L header and content. > > >my point was tha