[CalendarServer-changes] [5420] CalendarServer/branches/users/glyph/sendfdport/twext/web2/metafd.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 30 14:52:34 PDT 2010
Revision: 5420
http://trac.macosforge.org/projects/calendarserver/changeset/5420
Author: glyph at apple.com
Date: 2010-03-30 14:52:33 -0700 (Tue, 30 Mar 2010)
Log Message:
-----------
replace bogus connection counter with a real one
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sendfdport/twext/web2/metafd.py
Modified: CalendarServer/branches/users/glyph/sendfdport/twext/web2/metafd.py
===================================================================
--- CalendarServer/branches/users/glyph/sendfdport/twext/web2/metafd.py 2010-03-30 21:50:05 UTC (rev 5419)
+++ CalendarServer/branches/users/glyph/sendfdport/twext/web2/metafd.py 2010-03-30 21:52:33 UTC (rev 5420)
@@ -44,6 +44,8 @@
process via L{InheritedPort}.
"""
+ _connectionCount = 0
+
def __init__(self, site, fd, contextFactory):
self.contextFactory = contextFactory
# Unlike other 'factory' constructions, config.MaxRequests and
@@ -80,9 +82,10 @@
"""
Create a TCP transport, from a socket object passed by the parent.
"""
+ self._connectionCount += 1
transport = Server(skt, protocol,
skt.getpeername(), JustEnoughLikeAPort,
- 4321, reactor)
+ self._connectionCount, reactor)
if data == 'SSL':
transport.startTLS(self.contextFactory)
transport.startReading()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100330/88ddf2a0/attachment.html>
More information about the calendarserver-changes
mailing list