interesting hang...
My apologies if this is a FAQ, I haven't been able to figure it out & can't find the answer online anywhere. I have a fairly extensive script I've written to display tables of information about equipment for an online game. For some reason the script is hanging at at least two points: At one point in the code I have it print a link to another page, but passing the same $ENV{'QUERY_STRING'} that was passed in to begin with. I don't know why, but it hangs. There are no unusual characters in the string, I've checked that; I even went so far as to escape the quotes defining the URL in the link, but still no luck. Here's the relevant lines as they are presently written: $pass = "/cgi-bin/plaintextresult.cgi?$ENV{'QUERY_STRING'}"; #print "$pass\n"; print "\n"; print "Submit unlisted equipment\n"; print "Plain text version\n"; It's the last line there that hangs. Note that if I uncomment the line that just prints the query string on its own, it doesn't hang. I also have other strange hangs in here, but I haven't yet been able to figure out which exact lines are causing the problem. For the ppl who can figure this stuff out just by install data: I'm running Redhat 8.0, Apache 2.0, on a p3-450. This entire application did work correctly under Redhat 7.3 (Skipjack), Apache 1.3. Unfortunately I upgraded... Thanks, Michael L. Forbes [EMAIL PROTECTED] For those who'd like to see the page in operation, it's at parailtrail.dyndns.biz/cgi-bin/index.cgi
Re: hangs on $ENV{'QUERY_STRING'}
Well, I've managed to make some significant progress: I got past that hang (apparently modperl was having problems with the URL b/c some of the values were being passed empty... i.e., "stage=4&eqtype=All&cont=&restrictflags=12"... notice that cont has no value. At any rate, I solved that problem by forcing the form that passes the information in to always have at least a bare minimum of data in each field... and it seems to be working. My next problem, which took four hours to track down, is that it turns out that mod_perl is choking on null values being retrieved from MySQL. I'm using DBI for the interface, and the actual fetch_row is performing exactly the way it should... but when it tries to do anything with my scalar once it has a null in it, it just chokes & sits there until it times out. Is this a known bug? Is there a known fix for it, other than ensuring I never have null values in my database? Thanks, Mike Forbes [EMAIL PROTECTED] On Wed, 2002-10-30 at 17:53, Michael Forbes wrote: > My apologies in advance if this is something that's been described & > solved before... I can't seem to find the answer in archival searches > (maybe I'm just using the wrong terms). > > At any rate, I have a fairly large script that I wrote when operating > under Apache 1.3, perl 5.8.0, Redhat 7.3. I'm now running Apache 2.0, > perl 5.8.0, and Redhat 8.0... and it stopped working when I performed > the upgrade. > > > Anywhere, what's happening is that the code below this paragraph is just > hanging...(on the second line, I've inserted a few "print > 'debug\n';" lines in the real thing to make sure.) it does finally > time out, without producing any output. > > here's the relevant code: > > $pass = "/cgi-bin/plaintextresult.cgi?$ENV{'QUERY_STRING'}"; > > print " HREF=\"$pass\" target='printerfriendly'>Plain text version\n"; > > > > Thanks in advance, and again, sorry if this is a FAQ, I just couldn't > find the answer anywhere. > > -Mike Forbes > [EMAIL PROTECTED] > >
hangs on $ENV{'QUERY_STRING'}
My apologies in advance if this is something that's been described & solved before... I can't seem to find the answer in archival searches (maybe I'm just using the wrong terms). At any rate, I have a fairly large script that I wrote when operating under Apache 1.3, perl 5.8.0, Redhat 7.3. I'm now running Apache 2.0, perl 5.8.0, and Redhat 8.0... and it stopped working when I performed the upgrade. Anywhere, what's happening is that the code below this paragraph is just hanging...(on the second line, I've inserted a few "print 'debug\n';" lines in the real thing to make sure.) it does finally time out, without producing any output. here's the relevant code: $pass = "/cgi-bin/plaintextresult.cgi?$ENV{'QUERY_STRING'}"; print "Plain text version\n"; Thanks in advance, and again, sorry if this is a FAQ, I just couldn't find the answer anywhere. -Mike Forbes [EMAIL PROTECTED]