Commit dcf95b36 authored by Julien Muchembled's avatar Julien Muchembled

Add timeout when communicating with the registry

This makes sure re6st does not stop working because a connection is stuck.
parent 85187191
......@@ -321,7 +321,7 @@ class RegistryClient(object):
host, port = splitport(host)
self._conn = dict(http=httplib.HTTPConnection,
https=httplib.HTTPSConnection,
)[scheme](host, port)
)[scheme](host, port, timeout=60)
self._path = path.rstrip('/')
def __getattr__(self, name):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment