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

[MacPerl] cgis with MacPerl 5.07r1



i've spent most of the day learning about server push and switching some cgis
from MacPerl 4.1.8 over to MacPerl 5.07r1 (with the MPCGI_06Feb96 cgi glue). 
i've had several cases where the cgi goes in an endless loop and won't let me
quit.  (sometimes i can't even force quit!)

the most reproducible occasion that this happens is during a server push.  for
example, if you open up the demo.cgi and add a "sleep 5;" command after the
"<STDIN>" line then you're almost guaranteed to timeout and go into an
infinite loop.  i have a bigger suspicion that anytime a cgi times out with
MacPerl 5.07r1 it will never quit, but i'm not sure if that's the real reason
for the loop...

another thing that has been bugging me is that fact that the server seems to
ALWAYS be MacHTTP/2.0 no matter what.  here's a script that proves it:
  $eol = "\015\012";
  print "HTTP/1.0 200 OK$eol";
  print "Server: NetPresenz/4.0$eol";
  print "MIME-Version: 1.0$eol";
  print "Content-type: text/html$eol$eol";
  print "Server = ", $ENV{'SERVER_SOFTWARE'}, $eol;

ok and my last realization of the day is that NetPresenz and MacHTTP don't do
server pushes until they've received all the data.  is this true?  is WebStar
the only mac server that does server pushes correctly?

steve

<http://web77.biola.edu/~steve> You trample down your dirt
And harvest weeds.   Her love grows   And she waters it so
carefully.  You scatter all her seedlings With one wave of
your hand And she plants another flower in the sand - 77's