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

Chris McDonough chrism at plope.com
Wed Apr 6 01:55:50 EDT 2005


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 call never returns. 

That sounds bad.  I'm surprised you've had so much trouble with this.  I
thought OS X was just BSD, and BSD works fine?

> I had two choices, one to fix 
> Darwin kernel, and one to
> make TempFile use StringIO, which worked wonderfully. You can override 
> make_file of FieldStorage
>  to return StringIO(), or cStringIO(). Now there are no problems with 
> locked out files, for me.

Well, that's good, but large uploads require a tempfile.

- C




More information about the Zope-Dev mailing list