def new_server_proxy(url): c = cache_set.get_cache(PyCURL_Cache, url) t = PyCurlTransport(c) return xmlrpclib.ServerProxy(url, transport=t)
def new_server_proxy(url, max_connects=None, timeout=None): c = cache_set.get_cache(PyCURL_Cache, url, max_per_cache=max_connects) t = PyCurlTransport(c, max_connects=max_connects, timeout=timeout) return xmlrpclib.ServerProxy(url, transport=t)