Re: mod_perl2 start one script twice

2008-10-22 Thread André Warnier
Second question about childs. I not fully understand, how childs work. In a little bit more details : When you start Apache, one single process is started. That's what you can call the "main" Apache. It reads and checks the configuration, and bombs out if anything is wrong. If nothing is wron

Re: mod_perl2 start one script twice

2008-10-22 Thread Foo JH
It's quite simple really. You're running 2 instances of the script. To retain the value of $counter, read up the mod_perl documentation for tips. CthuMP wrote: I have follow simple script: !#/usr/bin/perl print "Content-Type: text/html\n\n"; print "Counter: " . (++$counter) . "\n"; print tim

Re: mod_perl2 start one script twice

2008-10-22 Thread André Warnier
CthuMP wrote: CthuMP wrote: Starting that script twice in two different browser windows gives me same results. In second window I start script after some period (about 10 seconds) after first script started. First and Second scripts ends at the same time. I have solved that problem. If someo

Re: mod_perl2 start one script twice

2008-10-22 Thread Adam Prime
CthuMP wrote: I have follow simple script: !#/usr/bin/perl print "Content-Type: text/html\n\n"; print "Counter: " . (++$counter) . "\n"; print time(), "\n"; sleep(20); print time(), "\n"; Starting that script twice in two different browser windows gives me same results. In second window I st

Re: mod_perl2 start one script twice

2008-10-22 Thread CthuMP
roblem. If someone interesting, it was an opera cache. Starting in different browsers gives me correct results. -- View this message in context: http://www.nabble.com/mod_perl2-start-one-script-twice-tp20107113p20111625.html Sent from the mod_perl - General mailing list archive at Nabble.com.

mod_perl2 start one script twice

2008-10-22 Thread CthuMP
seen mention about that situation in official documentations. -- View this message in context: http://www.nabble.com/mod_perl2-start-one-script-twice-tp20107113p20107113.html Sent from the mod_perl - General mailing list archive at Nabble.com.