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

Re: [MacPerl] Troublesome CGIs



At 20.35 1998.04.12, David Steffen wrote:
>You cannot have more than one CGI (or ACGI; for the purposes of this
>discussion I believe them to be equivalent)  running at the same time.

This does depend on what you mean by "running".  The small glue apps for
the CGI can be running, as many as you can handle with your memory.  But
only one can execute with the MacPerl app simultaneously.


>you must never have one person hit a MacPERL CGI while
>another (or the same) MacPERL CGI is running.

That's not exactly true in my experience.  What will happen is that one
will wait for the other to finish.  If you are using .cgi, you will
probably be safer, because the server will wait until the first CGI
finishes executing before attempting to execute the second.

With .acgi, this is probably where most of the problems come in, as the
server passes the request to the MacPerl app without waiting for the first
one to finish, which is probably where it hangs.


There are ways around all of this.  One is to wait for a threaded MacPerl,
which may address this problem.  That is the best.  There are other
solutions that can aid in speedier access to CGIs.

Also, someone with time and inclination might look at the source code for
the CGI Script extension and submit a patch that might fix the problem of
the hang.  This won't make anything run faster, but it will fix the hanging
problem.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



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