[Zope-Checkins] CVS: Packages/Zope/Startup - handlers.py:1.6.2.10.8.1 zopeschema.xml:1.7.2.15.8.1

Sidnei da Silva sidnei at awkly.org
Wed Nov 3 15:15:04 EST 2004


Update of /cvs-repository/Packages/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv17273/lib/python/Zope/Startup

Modified Files:
      Tag: dc-large_file-branch
	handlers.py zopeschema.xml 
Log Message:
Create a directive for configuring the large file threshold where temp files are created and use it for NullResource.PUT.


=== Packages/Zope/Startup/handlers.py 1.6.2.10 => 1.6.2.10.8.1 ===
--- Packages/Zope/Startup/handlers.py:1.6.2.10	Mon Jul 26 13:38:08 2004
+++ Packages/Zope/Startup/handlers.py	Wed Nov  3 15:14:33 2004
@@ -111,6 +111,10 @@
     import ZServer
     ZServer.CONNECTION_LIMIT = value
 
+def large_file_threshold(value):
+    import ZServer
+    ZServer.LARGE_FILE_THRESHOLD = value
+
 # server handlers
 
 def root_handler(config):


=== Packages/Zope/Startup/zopeschema.xml 1.7.2.15 => 1.7.2.15.8.1 ===
--- Packages/Zope/Startup/zopeschema.xml:1.7.2.15	Mon Jul 26 13:38:08 2004
+++ Packages/Zope/Startup/zopeschema.xml	Wed Nov  3 15:14:33 2004
@@ -717,14 +717,23 @@
     </description>
   </section>
 
-  <!-- max-listen-sockets should really go into the ZServer package, but
-       I can't quite figure out how to put it there -->
+  <!-- max-listen-sockets and large-file-threshold should really go
+       into the ZServer package, but I can't quite figure out how to
+       put it there -->
 
   <key name="max-listen-sockets" datatype="integer"
        handler="max_listen_sockets" default="1000">
      <description>
        The maximum number of sockets that ZServer will attempt to open
        in order to service incoming connections.
+     </description>
+  </key>
+
+  <key name="large-file-threshold" datatype="byte-size"
+       handler="large_file_threshold" default="512KB">
+     <description>
+       Requests bigger than this size get saved into a temporary file
+       instead of being read completely into memory.
      </description>
   </key>
 



More information about the Zope-Checkins mailing list