Fixed (Re: HTTP file uploads with mod_accel)

2002-01-06 Thread Philip Mak

Never mind, I'm an idiot. I just took a look at the error_log of my
frontend and the problem became clear.

[Sun Jan  6 09:42:04 2002] [error] [client 206.173.36.189] (13)Permission denied: 
accel: can't create tempfile /usr/local/apache/cache/tmpFtYxlf



Re: Fixed (Re: HTTP file uploads with mod_accel)

2002-01-06 Thread Igor Sysoev

On Sun, 6 Jan 2002, Philip Mak wrote:

 Never mind, I'm an idiot. I just took a look at the error_log of my
 frontend and the problem became clear.
 
 [Sun Jan  6 09:42:04 2002] [error] [client 206.173.36.189] (13)Permission denied: 
accel: can't create tempfile /usr/local/apache/cache/tmpFtYxlf

My fault. I've just fixed it and in next release mod_accel would return
500 in this case.

Igor Sysoev




Re: Fixed (Re: HTTP file uploads with mod_accel)

2002-01-06 Thread Issac Goldstand

Igor,
  DOES mod_accel buffer the uploads as they come through?  That feature
would be critical for compatibility with libapreq's UPLOAD_HOOK, which I'm
finding lots of nice uses for...

  Issac

- Original Message -
From: Igor Sysoev [EMAIL PROTECTED]
To: Philip Mak [EMAIL PROTECTED]
Cc: Issac Goldstand [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 6:56 PM
Subject: Re: Fixed (Re: HTTP file uploads with mod_accel)


 On Sun, 6 Jan 2002, Philip Mak wrote:

  Never mind, I'm an idiot. I just took a look at the error_log of my
  frontend and the problem became clear.
 
  [Sun Jan  6 09:42:04 2002] [error] [client 206.173.36.189]
(13)Permission denied: accel: can't create tempfile
/usr/local/apache/cache/tmpFtYxlf

 My fault. I've just fixed it and in next release mod_accel would return
 500 in this case.

 Igor Sysoev





Re: Fixed (Re: HTTP file uploads with mod_accel)

2002-01-06 Thread Igor Sysoev

On Sun, 6 Jan 2002, Issac Goldstand wrote:

   DOES mod_accel buffer the uploads as they come through?  That feature
 would be critical for compatibility with libapreq's UPLOAD_HOOK, which I'm
 finding lots of nice uses for...

Yes, mod_accel buffers completly uploads and starting from 1.0.8
broken uploads even do not go to backend.
The are two reasons:
1. Backend should not wait slow client upload.
2. To implement simple fault-tolerance I need to collect whole upload.
Although second reason does not require to collect whole upload before
sending it to backend.

There is workaround to use UPLOAD_HOOK on backend - you can use mod_proxy
with mod_accel:

ProxyPass  /upload/  http://backend/upload/
ProxyPassReverse   /upload/  http://backend/upload/
AccelPass  / http://backend/
AccelNoPass/upload/

Igor Sysoev