On Sat, 1 Apr 2000, Jaime Teng wrote:
How do you make perl script (either on Linux+Apache+Mod_perl
or in NT+IIS4 environment) make a "Connection: Keep-Alive".
Set the Content-Length header or play with the Transfer-Encoding:
chunked thing.
From ap_set_keepalive in http_protocol.c.
/*
Hi,
How do you make perl script (either on Linux+Apache+Mod_perl
or in NT+IIS4 environment) make a "Connection: Keep-Alive".
On both environment, the connections always closes after the
perl script finished execution.
Any idea?
Jaime
If you're referring to a database connection, the Apache DBI module
keeps the connection alive, not the mod_perl module.
Jaime Teng wrote:
Hi,
How do you make perl script (either on Linux+Apache+Mod_perl
or in NT+IIS4 environment) make a "Connection: Keep-Alive".
On both environment,
r u talking about db persistence?
postgres does concurrent persistence checking
what does this mean?
it means it handles the whole db in such a way that coding persistence
into your perl progs really isnt nessecary
as postgres handles it all for youn automagically
btw anyone notice how
nope. im not referring to database connection.
im referring to the HTTP's "Connection: Keep-Alive"
wherein the browser and the server maintains a socket
connection even after the perl script finished execution.
jaime
At 05:33 PM 3/31/00 -0500, Buddy Lee Haystack wrote:
If you're referring to a
Hello Dr. Frog!
Any relation to Kermit?
I'm not sure Jaime is referring to PostgreSQL [my favorite open source DB] in
particular, or even database persistence in general.
Clayton Cottingham aka DrFrog wrote:
r u talking about db persistence?
postgres does concurrent persistence
At 06:40 AM 4/1/00 +0800, Jaime Teng wrote:
nope. im not referring to database connection.
im referring to the HTTP's "Connection: Keep-Alive"
wherein the browser and the server maintains a socket
connection even after the perl script finished execution.
jaime
Keep-Alive is a function of the
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)
my pages end in '.htm' but they are
dynamically generated.
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
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
At 04:48 PM 3/31/00 -0800, Cliff Rayman wrote:
my pages end in '.htm' but they are
dynamically generated.
ps.
are these ".htm" generated by perl?
you mentioned embperl... I dont use embperl.
I strictly use a ".pl" file there must be an
execution difference there making your situation
different
here are my relevant httpd.conf settings
--- snip ---
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 50
MaxRequestsPerChild 300
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;"
these are all generated thru embperl.
cliff
Jaime Teng wrote:
At 04:48 PM 3/31/00 -0800, Cliff Rayman wrote:
my pages end in '.htm' but they are
dynamically generated.
ps.
are these ".htm" generated by perl?
you mentioned embperl... I dont use embperl.
I strictly use a ".pl" file
At 05:05 PM 3/31/00 -0800, Cliff Rayman wrote:
these are all generated thru embperl.
cliff
I guess i'll have to install HTML::Embperl to see if it solves my problem.
Unless anyone can show me a solution using Apache::Registry
i prefer to use strict perl program to generate the HTML pages.
I
how are you sending your headers?
$r-send_cgi_header OR $r-send_http_header('text/html');
is the child that serves the request surviving or is it
dying directly after?
cliff rayman
genwax.com
Jaime Teng wrote:
At 05:05 PM 3/31/00 -0800, Cliff Rayman wrote:
these are all generated thru
At 05:19 PM 3/31/00 -0800, you wrote:
my understanding is that you _must_ know the message size in advance and
generate all the appropriate headers (one of them being the size of the
body to follow ... and that's very important since there is no otherway to
know when the whole body has been
At 05:22 PM 3/31/00 -0800, you wrote:
how are you sending your headers?
$r-send_cgi_header OR $r-send_http_header('text/html');
i dont use CGI.pm.
all output is first sent to a single variable: $HTTP
ie,
$HTTP .= "Content-type: text/html\n\n";
$HTTP .= "HTML\n";
$HTTP .= "/HTML\n";
then at
At 05:19 PM 3/31/00 -0800, you wrote:
my understanding is that you _must_ know the message size in advance and
generate all the appropriate headers (one of them being the size of the
body to follow ... and that's very important since there is no otherway to
know when the whole body has been
18 matches
Mail list logo