[CalendarServer-changes] [2286] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 7 14:46:01 PDT 2008


Revision: 2286
          http://trac.macosforge.org/projects/calendarserver/changeset/2286
Author:   dreid at apple.com
Date:     2008-04-07 14:46:00 -0700 (Mon, 07 Apr 2008)

Log Message:
-----------
Parameterize the maximum number of outstanding HTTP requests.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/config.py
    CalendarServer/trunk/twistedcaldav/tap.py

Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py	2008-04-04 20:42:32 UTC (rev 2285)
+++ CalendarServer/trunk/twistedcaldav/config.py	2008-04-07 21:46:00 UTC (rev 2286)
@@ -178,6 +178,10 @@
     # Support for Content-Encoding compression options as specified in
     # RFC2616 Section 3.5
     "ResponseCompression": True,
+
+
+    # Set the maximum number of outstanding requests to this server.
+    "MaxRequests": 600,
 }
 
 class Config (object):

Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py	2008-04-04 20:42:32 UTC (rev 2285)
+++ CalendarServer/trunk/twistedcaldav/tap.py	2008-04-07 21:46:00 UTC (rev 2286)
@@ -678,7 +678,7 @@
 
         site = Site(realRoot)
 
-        channel = http.HTTPFactory(site)
+        channel = http.HTTPFactory(site, maxRequests=config.MaxRequests)
 
         if not config.BindAddresses:
             config.BindAddresses = [""]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080407/f0b56d20/attachment.html


More information about the calendarserver-changes mailing list