jepri has asked for the wisdom of the Perl Monks concerning the following question:
I think I must have gone nuts. One browser request gives me two of everything. Everything is doubled - the log file entries and the brwoser output. The two outputs seem to be separated by about a second. As you can imagine this really screws up my output html.
This problem also happens when I switch apache into single-threaded mode, if I use straight CGI, whatever. Running it off the command line, it appears that my module (Common.pm) gets loaded twice, but the program only runs once.
Going through my backups they all seem to do it, and yet I'm sure I would have noticed this problem a week ago. What could I have done to get this effect?
Server version: Apache/1.3.9 (Unix) Debian/GNU Server built: Apr 30 2000 12:54:24 perl5 (5.0 patchlevel 5 subversion 3)
Take note of the random numbers, which were generated with a print rand(1000)
==> /var/log/apache/error.log <== Config file loaded About to initialise variables for create_user.pl Started initialisation routine for Common,pm-------------- ################### This is a random number 326.732844579965 ################### CGI setup - new CGI=HASH(0x80d1fd0) created Got session ID: 786743dec247e75e60135ee4d159332f Tieing %userinfo to database... ==> /var/log/apache/error.log <== Config file loaded About to initialise variables for create_user.pl Started initialisation routine for Common,pm-------------- ######################### This is a random number 326.732844579965 ######################### CGI setup - new CGI=HASH(0x80d1fd0) created Got session ID: 786743dec247e75e60135ee4d159332f Tieing %userinfo to database... ==> /var/log/apache/error.log <==
____________________
Jeremy
I didn't believe in evil until I dated it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Everything gets output twice
by lemming (Priest) on May 21, 2001 at 10:46 UTC | |
by jepri (Parson) on May 21, 2001 at 11:45 UTC | |
Re: Everything gets output twice
by clintp (Curate) on May 21, 2001 at 18:00 UTC | |
by jepri (Parson) on May 21, 2001 at 18:48 UTC | |
by tye (Sage) on May 21, 2001 at 21:25 UTC | |
Re: Everything gets output twice
by koolade (Pilgrim) on May 21, 2001 at 21:48 UTC |
Back to
Seekers of Perl Wisdom