[Zope-dev] Problem uploading large files

Jeff Rush Jeff Rush" <jrush@taupro.com
Thu, 09 Mar 2000 09:26:16 -0500 (CST)


On Tue, 7 Mar 2000 01:46:14 +0100, Alexander Limi wrote:

>On our site, people should be able to upload big files (MP3s) that are
>stored outside the ZODB. This is done via an upload form and HTTP POST.
>
>So, the problem is: When uploading large files, ie. files that exceed 30
>minutes or so of upload time, things stop working. It isn't file size, it is
>only dependant on the time used.

>So, I'm quite puzzled. Is there a timeout value in ZServer/Medusa that can
>be tweaked?

Yes, there is a timeout value buried in ZServer.  Go look in the file
/usr/share/zope/ZServer/HTTPServer.py, class zhttp_channel.
There is a class variable 'zombie_timeout', set to 100 minutes.  Also
look in /usr/share/zope/ZServer/medusa/http_server.py for 'zombie'
code, *both* in the  http_channel class and status_handler class.
In the medua/http_server.py class, that timeout is *** 30 minutes ***.

When a ZServer channel has been in existence for that long, it is automatically
closed, in the method kill_zombies() of that class.  This may be your problem.

-Jeff Rush (Zope Consultant)