|
Hi, Recently I’ve noticed intermittent problems in the
behavior of my code when running under Mod_Perl
2.0. This particular code has been
out there for years with no problems.
Recently I’ve seen a few problems and I’m wondering if it
has anything to do with Mod_Perl 2.0, it has been
running fine under Mod_Perl 1 for years. Basically the problem that I see is once in a while when the
file is opened the file offset does not appear to be at the beginning of the
file. After a file is opened I
assume the file reader is at the beginning of the file but once in a while it
seems like it is reading from the middle of the file after it is opened. Most of the time the
code works just fine. Here
is the code: open (authlib::QUESTIONFILE,'<'
. $authlib::GlobalPaths[0] .
$strQstName) or authlib::ssiDie("Can't open the
file $strQstName,\n", $!, 1); binmode authlib::QUESTIONFILE; #Get
first line $_
= <authlib::QUESTIONFILE>; #
Here is where it fails from time to time getting a
different line (not the first line in the file). Does anyone have any idea what is going on? Is this a Mod_Perl
2.0 thing? We are only using Mod_Perl’s
registry to speed up our Perl scripts. Here is what we have in the Apache
configuration file: <IfModule mod_perl.c> <Files
~ (\.pl)> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options
+ExecCGI Order
allow,deny Allow
from all </Files> </IfModule> Thanks for your help, Justin |
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.