[CalendarServer-changes] [9084] CalendarServer/branches/users/glyph/ipv6-client/twistedcaldav/notify .py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 13 11:46:27 PDT 2012
Revision: 9084
http://trac.macosforge.org/projects/calendarserver/changeset/9084
Author: glyph at apple.com
Date: 2012-04-13 11:46:27 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
connectTCP -> GAIEndpoint for twistedcaldav.notify
Modified Paths:
--------------
CalendarServer/branches/users/glyph/ipv6-client/twistedcaldav/notify.py
Modified: CalendarServer/branches/users/glyph/ipv6-client/twistedcaldav/notify.py
===================================================================
--- CalendarServer/branches/users/glyph/ipv6-client/twistedcaldav/notify.py 2012-04-13 18:46:22 UTC (rev 9083)
+++ CalendarServer/branches/users/glyph/ipv6-client/twistedcaldav/notify.py 2012-04-13 18:46:27 UTC (rev 9084)
@@ -1,3 +1,4 @@
+# -*- test-case-name: twistedcaldav.test.test_notify -*-
##
# Copyright (c) 2005-2012 Apple Inc. All rights reserved.
#
@@ -54,6 +55,8 @@
from twistedcaldav.memcacher import Memcacher
from twistedcaldav.stdconfig import DEFAULT_CONFIG, DEFAULT_CONFIG_FILE
from twistedcaldav import memcachepool
+from twext.internet.gaiendpoint import GAIEndpoint
+from twext.internet.adaptendpoint import connect
log = Logger()
@@ -243,7 +246,8 @@
def send(self, op, id):
if self.factory is None:
self.factory = NotificationClientFactory(self)
- self.reactor.connectTCP(self.gatewayHost, self.gatewayPort,
+ connect(
+ GAIEndpoint(self.reactor, self.gatewayHost, self.gatewayPort),
self.factory)
self.log_debug("Creating factory")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/a5e82508/attachment-0001.html>
More information about the calendarserver-changes
mailing list