[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI scripts hang with Net Presenz??



On 31 Mar 98 at 15:29, you wrote:

> Need a little help if someone had already run into this problem.  I'm 
> teaching a class in a quasi-Distance Learning format using a Mac running 
> NetPresenz and of course MacPerl.  Occasionally my CGI scripts will 
> simply refuse to terminate and just hang there.  They don't take the 
> machine, NetPresenz, or even MacPerl down.  But they do ignore any 
> subsequent calls to that CGI script.  Anyone else run into this snafu?  
> Is it sloppy programming on my part, a parameter setting problem of 
> somekind, or a bug that I'll just have to live with?

I've seen something similar. I have a Mac Perl CGI that searches a 
database, and a malformed search was effectivly requesting the return 
of the entire database. I already knew that this wouldn't work once 
the length of the return information exceded the maximum return from 
an Apple Event (32Kb? 64Kb?) since I started getting 'Document 
contains no data', but is seemed that exceeding this by lots caused 
something in Mac Perl or the glue to get very confused. Symptom was 
as you describe - the CGI would not work and would not quit.

The simple solution was to screen out the dud requests, but there is 
probably something that needs fixing somewhere to stop the crashing.

Jon.
--
Jon Warbrick, Computer Systems Manager,                jw35@cus.cam.ac.uk
St John's College, Cambridge, CB2 1TP, UK.             +44 (0)1223 338751
(also webmaster, computer-support and part-time postmaster@joh.cam.ac.uk)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch