hi

sorry my english
i have one problem
when i open 2 browsers intance and access my perl script
instance 1 run script OK
instance 2 waiting instance 1 finalize to run :/

i need run simultane 2 instance
(modperl 2.0 dev 5 / perl 8 rc 3 / apache 2.0 prefork or worker )

example:

#!/usr/bin/perl

use Apache2;
$| = 1;
my $r = Apache->request;
$r->content_type("text/html");
$r->send_http_header;
$r->print(Apache::get_server_version()."<br>");

# only for Apache Pre-Fork MPM
#if (Apache::MPM_IS_THREADED) {
#   my $id = APR::OS::thread_current();
#       print "current thread id: $id";
#}
#else {
#       print "current process id: $$";
#}

$i = 0;
while ($i < 20) {
        $r->print($i."<br>\n");
        $i++;
        sleep 1;
}

thanks

Udlei Nattis
www.nobol.com.br

Reply via email to