At 04:48 PM 3/31/00 -0800, Cliff Rayman wrote:
>my pages end in '.htm' but they are
>dynamically generated.
how'd you do it?
can you send me a copy of your http.conf file?
at least the ones that deals with the ".htm" file extensions
and the server config group.
what I have is:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 30
MinSpareServers 3
MaxSpareServers 5
StartServers 3
MaxClients 150
<Files ~ "\.pl$">
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader Off
PerlModule Apache::DBI
</Files>
>
>cliff rayman
>genwax.com
>
>Jaime Teng wrote:
>
>> At 04:05 PM 3/31/00 -0800, Cliff Rayman wrote:
>> >I just tested my keep-alive via telnet as you suggested.
>> >I am using embperl and mod_perl.
>> >I was able to make three separate requests on the same connection
>> >without a problem.
>> >
>> >Here is a copy of one of the headers:
>> >HTTP/1.1 200 OK
>> >Date: Fri, 31 Mar 2000 23:59:53 GMT
>> >Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4
>> >Set-Cookie: GWCUID=ad912cb7a7e771d1; domain=.genwax.com; path=/;
>> expires=Friday,
>> >31-Dec-2010 14:00:00 GMT
>> >Content-Length: 26413
>> >Keep-Alive: timeout=15, max=100
>> >Connection: Keep-Alive
>> >Content-Type: text/html; charset=iso-8859-1
>> >
>> >does yours come back with:
>> >200 OK
>> >Connection: Keep-Alive
>> >Keep-Alive: timeout etc.. ??
>>
>> what were you fetching above? an html static page or a dynamic
>> perl generated page? My problem is making connection keep-alive
>> on perl generated pages.
>>
>> for static web pages yes i get same one like that
>> but for dynamic perl generated pages (with PerlSendHeader On) I get:
>> 200 OK
>> Connection: Closed
>>
>> Of course I have to make my wn http header when I set
>> "PerlSendHeader Off" but with same effect
>> connection is closed on dynamic perl generated pages.
>>
>> also, im sure the perl pages are executed as mod_perl as evident
>> by the existence of the "my() subroutine problem" assosiated with
>> Apache::Registry
>>
>> >
>> >cliff rayman
>> >genwax.com
>> >
>> >Jaime Teng wrote:
>> >
>> >> >Keep-Alive is a function of the web-server. There are no script changes
>> >> >involved to keep a connection alive. All you have to do on the
server side
>> >> >is to enable Keep-Alive. See
http://www.apache.org/docs/keepalive.html for
>> >> >an explanation.
>> >>
>> >> The web servers (apache, IIS) already have the Keepalive setting on and
>> >> properly keeps connection alive. The web server keeps the connection
alive
>> >> when the browser is fetching static HTML pages.
>> >>
>> >> Proof: telnet to fetch static document will remain open, ie, i can
>> >> fetch as many static pages from one single telnet session without
>> >> getting "connection to host lost" so long I specify
>> >> "Connection: Keep-Alive" in the telnet session.
>> >>
>> >> BUT the connection dies when the browser is fetching dynamic mod_perl
>> pages.
>> >> This is where I would like to know if this is a perl/modperl issue or an
>> >> apache/IIS issue.
>> >>
>> >> Proof: telnet to fetch the perl script will be closed after perl
>> >> finished running the script, ie, I get "connection to host lost"
>> >> immediately after the script finishes.
>> >>
>> >> is this a perl/modperl issue? where can i get docs to solve this?
>> >>
>> >> jaime
>> >
>