Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: CGI::Application file uploads buffering

by cjb (Friar)
on Mar 24, 2011 at 14:56 UTC ( #895275=note: print w/replies, xml ) Need Help??

in reply to Re^2: CGI::Application file uploads buffering
in thread CGI::Application file uploads buffering

perldoc seems to indicate "under Accessing the temp files directly" that's expected behavior for You might want to look at the section "Progress bars for file uploads and avoiding temp files"

  • Comment on Re^3: CGI::Application file uploads buffering

Replies are listed 'Best First'.
Re^4: CGI::Application file uploads buffering
by Anonymous Monk on Mar 24, 2011 at 15:10 UTC
    Thanks. When experimenting we found that files > 2.1 GB cause an error in apache:
    Invalid Content-Length (-3)Unknown error: Error reading request entity data
    I think I need to go find out if this bug is fixed. Running 2.2.8, so it's old. Still curious as how to get avoid writing to /tmp like that. Thanks

      Do your filesystem, OS, perl, and apache installs support files larger than 2GB? 2**32 == 4294967296 (4GB), and the signed version of that value is 2GB, you are limited to 2GB unless all of the above use file offsets of greater than 2**32. Search for "largefile".

      Update: Specifically, run perl -V | grep -i largefile and see what it says. Mine has uselargefiles=define and -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' in the output. I seem to remember Apache having the same type of configuration, I know that my filesystem has to have a flag set to support large files, and operating systems have not always supported files larger than 2**31-1.


        Genius! perl -V | grep -i largefile shows
        So it does have the two things you mentioned. httpd -V says:
        Server version: Apache/2.2.8 (Unix) Server built: Apr 24 2008 11:03:10 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.12, APR-Util 1.2.12 Compiled using: APR 1.2.12, APR-Util 1.2.12 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FCNTL_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/opt/custom/apache" -D SUEXEC_BIN="/opt/custom/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf"
        I don't see anything similar about large file support. The os is Solaris 2.10. I don't know how to check it for large file support.
        Any further ideas? Anthing else I can check?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895275]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-03-24 07:29 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.