perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: re-post : duplicate sockets with mp2, apache2, linux
Date Fri, 21 Sep 2007 11:03:52 GMT
On 9/21/07, André Warnier <aw@ice-sa.com> wrote:
> This is an Apache2 PerlAuthenHandler.  How do I run that under
> the debugger ?

http://www.perl.com/pub/a/2006/02/09/debug_mod_perl.html
And if you haven't read it before:
http://modperlbook.org/html/part4.html

> (I am not at all familiar with the debugger per se, so
> if this is a big setup, it might be more efficient to go another route.)

Okay, but it's hard to beat the debugger when you don't know what's happening.

>  From the logfile of the database module (the external server to which I
> connect from the handler), I do see when the two sockets appear though :
> at the same second or within 1 second of one another.

A few thousand things probably happen in that second.

> I mean, purely in the abstract, is there any circumstance in which a
> single execution of an IO::Socket::INET->new() or a "socket() +
> connect()" could possibly open 2 connections to the same destination ?

None that I know.

> Or else : does anyone know of another simple-to-set-up mod_perl/Apache2
> module that opens a connection to an external server, and which I could
> run to see if it does the same kind of thing ?

DBI.  Or LWP.  Or one of the mail modules.

- Perrin

Mime
View raw message