Caught a SIGPIPE in perl handler

2005-11-21 Thread Pete Smith
Hi, I am using HTML::Mason and use the perl handler method of configuring it. I occasionally get this error in error log (it causes a 500): [Fri Nov 18 20:29:12 2005] [error] Caught a SIGPIPE at /etc/mason.pl line 52 Line 52 is where I get the Apache::Request object. Here is my handler: ... su

RE: File uploads using Apache:;request in mod_perl2

2004-01-19 Thread Pete Smith
Sorry, I forgot to mention this too. I am defining $r as the request object, like in mod_perl1: my $r = Apache::Request->new(shift, TEMP_DIR => '/tmp/mason', ); Is this correct in mod_perl2? I'm sorry, but I'm not terribly clued up on mod_

RE: File uploads using Apache:;request in mod_perl2

2004-01-19 Thread Pete Smith
> In your mp1 code, you are simply slurping the upload into > $full_image_data; with apreq2 you can do that with a bucket > brigade via > > my $bb = $req->upload('image')->bb; > my $full_image_data = ""; > > while (my $b = $bb->first) { > $b->read(my $buffer); > $full_image_data .

RE: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Pete Smith
> no, no, you have confused something. You need a new version of > Apache::Request > which is still in beta. Please take a look at: > http://httpd.apache.org/apreq/ > Also please notice that it has its own mailing list if you have any > questions. Thanks for your help. I've installed it, and Apach

File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Pete Smith
Hi, I am new to this list, but I have tried looking through the docs at CPAN and googling for people with similar problems to no avail. We have upgraded our server to apache2 + mod_perl2. I used to have a routine that took a file upload from a multipart form and handed it as a stream to Imager an