[CalendarServer-changes] [9081] CalendarServer/branches/users/glyph/ipv6-client/calendarserver/tools /notifications.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 13 11:46:12 PDT 2012


Revision: 9081
          http://trac.macosforge.org/projects/calendarserver/changeset/9081
Author:   glyph at apple.com
Date:     2012-04-13 11:46:12 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
change from connectTCP to GAIEndpoint in calendarserver.tools.notifications

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/ipv6-client/calendarserver/tools/notifications.py

Modified: CalendarServer/branches/users/glyph/ipv6-client/calendarserver/tools/notifications.py
===================================================================
--- CalendarServer/branches/users/glyph/ipv6-client/calendarserver/tools/notifications.py	2012-04-13 18:46:07 UTC (rev 9080)
+++ CalendarServer/branches/users/glyph/ipv6-client/calendarserver/tools/notifications.py	2012-04-13 18:46:12 UTC (rev 9081)
@@ -27,6 +27,10 @@
 from twisted.words.protocols.jabber.jid import JID
 from twisted.words.protocols.jabber.xmlstream import IQ
 from twisted.words.xish import domish
+
+from twext.internet.gaiendpoint import GAIEndpoint
+from twext.internet.adaptendpoint import connect
+
 from twistedcaldav.config import config, ConfigurationError
 from twistedcaldav.util import AuthorizedHTTPGetter
 from xml.etree import ElementTree
@@ -597,7 +601,7 @@
 
         pubsubFactory = PubSubClientFactory(jid, self.password, service, nodes,
             self.verbose)
-        reactor.connectTCP(host, port, pubsubFactory)
+        connect(GAIEndpoint(reactor, host, port), pubsubFactory)
 
 
     def makeRequest(self, path, method, headers, body):
@@ -613,7 +617,7 @@
             reactor.connectSSL(self.host, self.port, caldavFactory,
                 ssl.ClientContextFactory())
         else:
-            reactor.connectTCP(self.host, self.port, caldavFactory)
+            connect(GAIEndpoint(reactor, self.host, self.port), caldavFactory)
 
         return caldavFactory.deferred
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/2831dac9/attachment.html>


More information about the calendarserver-changes mailing list