Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-06 Thread Florent Guillaume
Chris McDonough <[EMAIL PROTECTED]> wrote: > On Wed, 2005-04-06 at 00:45, Pavel Zaitsev wrote: > > If you look above I had problems with zope creating temp files, as I am > > using Mac OS X and Webdav to Zope > > mounted on the same machine. There is some race condition on locks in > > mach kern

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-05 Thread Chris McDonough
On Wed, 2005-04-06 at 00:45, Pavel Zaitsev wrote: > Hello, > If you look above I had problems with zope creating temp files, as I am > using Mac OS X and Webdav to Zope > mounted on the same machine. There is some race condition on locks in > mach kernel, and sometimes zope > dies, as open system

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-05 Thread Pavel Zaitsev
Hello, If you look above I had problems with zope creating temp files, as I am using Mac OS X and Webdav to Zope mounted on the same machine. There is some race condition on locks in mach kernel, and sometimes zope dies, as open system call never returns. I had two choices, one to fix Darwin ker

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-04 Thread Chris McDonough
On Mon, 2005-04-04 at 14:27, Dieter Maurer wrote: > Even a "PUT" may get a multipart entity. But it never actually does in practice. Or if it does, I've never seen it. And if it did, would an implementation just store the multipart-encoded body? I suppose it could do anything, but it seems lik

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-04 Thread Dieter Maurer
Chris McDonough wrote at 2005-4-3 18:14 -0400: > ... >So in the common case, when a large file is uploaded via HTTP PUT (both >DAV and external editor use PUT exclusively), here's what happens: > >- ZServer creates a tempfile T1 to hold the file body as it gets > pulled in. > >- When the request m

Re: [Zope-dev] opinion: speeding up large PUT uploads

2005-04-04 Thread Florent Guillaume
Chris McDonough <[EMAIL PROTECTED]> wrote: > Zope's ZPublisher.HTTPRequest.HTTPRequest class has a method named > "processInputs". This method is responsible for parsing the body of all > requests. It parses all upload bodies regardless of method: PUT, POST, > GET, HEAD, etc. In doing so, it us

[Zope-dev] opinion: speeding up large PUT uploads

2005-04-03 Thread Chris McDonough
Zope's ZPublisher.HTTPRequest.HTTPRequest class has a method named "processInputs". This method is responsible for parsing the body of all requests. It parses all upload bodies regardless of method: PUT, POST, GET, HEAD, etc. In doing so, it uses Python's FieldStorage module to potentially break