X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=xmlrpcclient.py;h=cc4d2888b6576843896fda3f89fea4a686a5272a;hb=7d427317cab577b54ab377100fdce5dc7d5366dc;hp=5c8f3cf2565329cc235cf9f598e296c86eb3abd4;hpb=e04df494d939e3bb644f788a02123ec05f4c8df4;p=quix0rs-apt-p2p.git diff --git a/xmlrpcclient.py b/xmlrpcclient.py index 5c8f3cf..cc4d288 100644 --- a/xmlrpcclient.py +++ b/xmlrpcclient.py @@ -3,6 +3,7 @@ from twisted.protocols.http import HTTPClient from twisted.internet.defer import Deferred from xmlrpclib import loads, dumps +import socket USER_AGENT = 'Python/Twisted XMLRPC 0.1' class XMLRPCClient(HTTPClient): @@ -41,3 +42,6 @@ class XMLRPCClientFactory(ClientFactory): prot.args = self.args prot.d = self.d return prot + + def clientConnectionFailed(self, connector, reason): + self.d.errback() \ No newline at end of file