[CalendarServer-changes] [6236] CalendarServer/trunk/contrib/performance/httpclient.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 3 11:58:48 PDT 2010
Revision: 6236
http://trac.macosforge.org/projects/calendarserver/changeset/6236
Author: exarkun at twistedmatrix.com
Date: 2010-09-03 11:58:47 -0700 (Fri, 03 Sep 2010)
Log Message:
-----------
Only try to read the response body if there might be one
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/httpclient.py
Modified: CalendarServer/trunk/contrib/performance/httpclient.py
===================================================================
--- CalendarServer/trunk/contrib/performance/httpclient.py 2010-09-03 17:46:24 UTC (rev 6235)
+++ CalendarServer/trunk/contrib/performance/httpclient.py 2010-09-03 18:58:47 UTC (rev 6236)
@@ -20,6 +20,8 @@
def readBody(response):
+ if response.length == 0:
+ return succeed(None)
finished = Deferred()
response.deliverBody(_DiscardReader(finished))
return finished
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100903/d6fb87b1/attachment.html>
More information about the calendarserver-changes
mailing list