[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Mon Mar 1 10:04:30 2004 -->
- <!--x-from-r13: Xbua.Oezfol ng zbgbebyn.pbz (Oezfol Xbua-U16665) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] apache2 process hanging -->
- <li><em>date</em>: Mon Mar 1 10:04:30 2004</li>
- <li><em>from</em>: John.Armsby at motorola.com (Armsby John-G16665)</li>
- <li><em>subject</em>: [ale] apache2 process hanging</li>
I am at my dim wits end. I have tried and cried.
I am moving a working perl cgi program from hpux 10, perl 5.003, apache 1.3.1 TO Red Hat Linux 9, perl 5.8, apache2.
The program reads a several meg text file, and spits out a table based upon form criteria. The program compiles and executes with no problem. THE PROBLEM is that the print output appears to be hanging in the buffer. I get a little bit of output and then the program hangs. I have grepped the process and find that it is asleep after a few seconds.
I have seen a similar problem with a C cgi script that I moved over. Liberally sprinkling the print statements with flush fixed the problem.
I have tried placing $| = 1; immediately before all my print statements. No go. I have seen some "select" code associated with a file handle use with setting $| to 1, but have been unable to make the leap from flushing a file handle.
I can't figure out if this is a perl problem or an apache2 problem. Since I am taking the original Perl and moving it over, it appears that apache2 is handling buffering differently from1.3.1.
I am stumped.
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00012" href="msg00012.html">[ale] apache2 process hanging</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00007.html">[ale] Software RAID Problems</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00009.html">[ale] memory check in bios</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00023.html">[ale] OT: ADSL modem bottleneck</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00012.html">[ale] apache2 process hanging</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00008"><strong>Date</strong></a></li>
<li><a href="threads.html#00008"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>