예제 #1
0
 def make_connection(self, host):
     prev = socket.getdefaulttimeout()
     socket.setdefaulttimeout(self.timeout)
     value = Transport.make_connection(self, host)
     socket.setdefaulttimeout(prev)
     return value
예제 #2
0
파일: xmlrpc.py 프로젝트: kbm1422/husky
 def make_connection(self, host):
     conn = Transport.make_connection(self, host)
     conn.timeout = self._timeout
     return conn
예제 #3
0
 def make_connection(self, host):
     prev = socket.getdefaulttimeout()
     socket.setdefaulttimeout(self.timeout)
     value = Transport.make_connection(self, host)
     socket.setdefaulttimeout(prev)
     return value
예제 #4
0
 def make_connection(self, host):
     conn = Transport.make_connection(self, host)
     conn.timeout = self._timeout
     return conn