Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Why can't I access $r->server->timeout ?

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


mirkperl at gmail

Sep 18, 2008, 9:30 AM

Post #1 of 2 (440 views)
Permalink
Why can't I access $r->server->timeout ?

If I do this with mod_perl 2.0.3 from inside my mod_perl application:

print STDERR "timeout = " . $r->server->timeout() . "\n";

I get this:

[Thu Sep 18 16:28:01 2008] [error] [client 192.168.1.40] Can't locate
object method "timeout" via package "Apache2::ServerRec" at
/var/httpd/lib/perl/SiteSpect/Engine/ResponseHTTPFilter.pm line 161.\n

But this documentation says that timeout should exist:

http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html#C_timeout_

What's going on? Does mod_perl 2.0.3 actually *not* have timeout
available in the ServerRec object?

Thanks,
Adam


fred at redhotpenguin

Sep 18, 2008, 9:53 AM

Post #2 of 2 (405 views)
Permalink
Re: Why can't I access $r->server->timeout ? [In reply to]

Adam Woodworth wrote:
> If I do this with mod_perl 2.0.3 from inside my mod_perl application:
>
> print STDERR "timeout = " . $r->server->timeout() . "\n";
>
> I get this:
>
> [Thu Sep 18 16:28:01 2008] [error] [client 192.168.1.40] Can't locate
> object method "timeout" via package "Apache2::ServerRec" at
> /var/httpd/lib/perl/SiteSpect/Engine/ResponseHTTPFilter.pm line 161.\n

You need to add 'use Apache2::ServerRec' to ResponseHTTPFilter.pm

>
> But this documentation says that timeout should exist:
>
> http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html#C_timeout_
>
> What's going on? Does mod_perl 2.0.3 actually *not* have timeout
> available in the ServerRec object?
>
> Thanks,
> Adam

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.