Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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.


In reply to Everything gets output twice by jepri

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2022-12-07 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?