I'm using file upload fields, and submitting the MIME-encoded version of the
file contents to a MySQL database. If I try to upload a file larger than
about 500kB, the DB insertion fails and I get this in the Apache error_log:
DBD::mysql::st execute failed: MySQL server has gone away at
Directory /usr/local/apache-dev/cgi-bin
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader Off
/Directory
--
Gregor Mosheh, B.S. http://www.blackangel.net/
As we enjoy great
::Registry tries to be smart regardless of PerlSendHeader.
If it doesn't see HTTP/1.x OK first, out come the headers.
Two options:
$r-response(200);
$r-send_http_header('text/html')
or print the HTTP line...
On Tuesday, November 20, 2001, at 04:17 PM, Gregor Mosheh wrote:
I need
r generate the
message.
I followed the advice in the mod_perl_traps, regarding
PERL_EMERGENCY_SBRK, and it made absolutely no difference at all.
This is driving myself and my co-workers crazy, cuz it's delaying our
migration to the new server. Ideas?
--
Gregor Mosheh, B.S.
Programmer, CargoTel