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

RE: [MacPerl] Output stream file size limits



A small update on what I have learned so far.
The restrictive size is coming from Apple Events,
and the limit is 64k. (From MPPE - thanks Chris and Vicki et al)
I used Command-L to start a log, and by a cursory reading, saw that
the ~28k file is read in, has header info for the CGI added, and 
is acted upon, and returned, and in pretty much a single swoop.
(Please correct if I am wrong about this). This presses the size
of what's passed up to around 64k, hence the limit was reached.
The bad part is that that is for a relatively empty form. I could
easily have 100k of data in one incoming form if a user so desired.
Without limiting the user input somehow, does anybody have a 
solution (other than a 3 part form or some such) or a workaround?
BTW - I am running MacOS 8.5b8c4 if it makes a difference (OT 2.0).
(Yeah, same results on 8.0/8.1 also)
TFTH and HAND,
Jon

>Each web server will have its own limitation for buffer sizes - perhaps   
>this can be configured by the end user.  As a general rule, http was not   
>designed for serving very large files, although 32K is not a partiularly   
>big file.  Please tell me what you learn about this matter.
>
> -----Original Message-----
>Is there a limit to how much data can be "throughputted"
>a CGI script written in MacPerl. I am using perl to generate
>and/or modify HTML pages, and whenever the resulting file
>size exceeds 32k, the WebStar server quits sending data,
>or so it appears. I have served much larger files with Web*
>and without MacPerl, and the 32k number sounds like a limit
>imposed my MacPerl somewhere.
>
>Just for the record, I'm using MacPerl 5.19r4 on a PPC, and
>I am using Web* 3.0. The perl I'm using is something like:
>
>    open(SHTEXTTOP,"form_top.txt") or die "form_top.txt: $!";
>       while (<SHTEXTTOP>) {
>         $sh_line = $_;
>         $sh_line =~ s/im_ref/$im_ref/g;
>         $sh_line =~ s/s_dept_name/$s_dept_name/g;
>         $sh_line =~ /SSFORM\[(.*?)\]/;
>          $subber = $SSFORM[$1];
>         $sh_line =~ s/SSFORM\[.*?\]/$subber/g;
>         print $sh_line;
>       }
>    close SHTEXTTOP;
>
>where there are about 5 of these opening and modifying
>various parts of what used to be one HTML file.

                                    \\\|///
                                    | ~ ~ |
                                   (- o o -)
 ===============================oOOOo=(_)=oOOOo=====
| Jon Lucenius - MultiMedia Director               |
| JCL Technologies                                 |
| E-mail: mailto:jonl@magpage.com                  |
| Office: 302-369-3016                             |
| Home  : 302-369-2989                             |
| Snail :17 Deer Run Drive                         |
|       :Newark DE 19702                   Oooo    |
 ==================================oooO====(  )=====
  "Quality Dynamic Technology."    (  )    ) /
      - Custom Progamming           \ (   (_/
       - Graphic Design              \_)
        - Interface Development

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