perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans de Groot <ha...@dandy.nl>
Subject RE: httpd stalling.
Date Wed, 15 Sep 2004 10:15:13 GMT
Hi,

this is: /usr/lib/perl5/site_perl/5.6.1/Apache/SessionX/Config.pm
package Apache::SessionX::Config ;

$default = 'Mysql' ;

@confs   = ('Mysql') ;
%param   =
    (
    'Mysql' =>
        {
         'UserName' => 'session',
         'DataSource' => 'session',
         'Generate' => 'MD5',
         'Lock' => 'Semaphore',
         'Password' => 'session',
         'Info' => 'MySQL, use semaphore for locking',
         'Serialize' => 'Storable',
         'Store' => 'MySQL',
        },

    ) ;

$defaultparam = $param{'Mysql'} ;

1 ;

and for the embperl 2.x httpd.conf

PerlModule Embperl
Embperl_UseEnv on
SetEnv EMBPERL_DEBUG 0
SetEnv EMBPERL_OPTIONS 2064
SetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_COOKIE_PATH "/"
PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session UserName=session
Password=session"

    <Files *.html>
        SetHandler  perl-script
        PerlHandler Embperl
        Options     ExecCGI
    </files>


And for the 1.3 httpd.conf

SetEnv EMBPERL_DEBUG 0
SetEnv EMBPERL_OPTIONS 2064
SetEnv EMBPERL_ESCMODE 0

PerlSetEnv EMBPERL_COOKIE_PATH "/"
PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session UserName=session
Password=session"

<Files *.html>
        SetHandler  perl-script
        PerlHandler HTML::Embperl
        Options     ExecCGI
</files>

I added the 2.x about a year later. When I was running the 1.3 alone I also had
this problem so I do not think it has something to do with running 2 embperls.

Could it be that the 1.3 causes the trouble?
If I would make another session table and let the 2.x version use that one could
that prevent both of them locking but just the one behaving badly?

Regards

Hans de Groot



Quoting Gerald Richter <richter@ecos.de>:

> >
> > And yes I make heavy use of %udat. I am not (yet) using %mdat.
> >
> > It would make sensense if had something to do with the sessions.
> > Any idea how to fix it?
> >
>
> How is your session setup in httpd.conf?
>
> And your Apache/SessionX/Config.pm from the site_perl directory?
>
> Gerald
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message