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

Re: [MacPerl] 32k document size limit



jar@hopf.dnai.com (yeah) writes:
>+-It all works pretty well. However when more than 32k of data
>+-match the user's request, then only 32k text is returned (the rest
>+-is clipped off at the end).
>
>This seems to be another instance of the AppleEvent 32k barrier.

I'm not sure that such a barrier exists on the AppleEvent level anymore.
However, there are other constraints in the chain of communication which
enforce a 32K limit.

>1) I believe that MacPerl 5.x allows data to be returned in chunks,
>   using a server-push construction.

Yes. A server push in MacPerl simply goes like this:

$push = <>;

Insert one of these every few K of output and the data will be pushed.

>2) Write the data to a file and serve up a "redirect" header, so the
>   client's browser requests the data directly via HTTP.

Another good idea.

>3) Use Frontier instead.

Well, naturally I cannot second this recommendation ;-) but de facto, Frontier
seems to be preferred for CGIs.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
  "Somehow I just can't imagine a comp.lang.java.hype newsgroup. 
   It's just a little too close to the truth... " -- Larry Wall