[CalendarServer-changes] [5853] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/ sendfdport.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jul 7 10:19:07 PDT 2010
Revision: 5853
http://trac.macosforge.org/projects/calendarserver/changeset/5853
Author: glyph at apple.com
Date: 2010-07-07 10:19:06 -0700 (Wed, 07 Jul 2010)
Log Message:
-----------
Work around the fact that no peer address may be available by the time we're processing the connection. The connection is probably just dropped already by this point, so don't bother to fabricate anything accurate-looking.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/sendfdport.py
Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/sendfdport.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/sendfdport.py 2010-07-07 17:10:34 UTC (rev 5852)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/sendfdport.py 2010-07-07 17:19:06 UTC (rev 5853)
@@ -292,7 +292,10 @@
# should this be on the transportFactory's side of things?
close(fd) # fromfd() calls dup()
- peeraddr = skt.getpeername()
+ try:
+ peeraddr = skt.getpeername()
+ except:
+ peeraddr = ('0.0.0.0', 0)
protocol = self.protocolFactory.buildProtocol(peeraddr)
transport = self.transportFactory(skt, description, protocol)
protocol.makeConnection(transport)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100707/ad0e72a4/attachment.html>
More information about the calendarserver-changes
mailing list