composer-cli: Change timeout to 5 minutes

In some cases osbuild-composer with an empty cache can take longer than
a minute to depsolve and start a compose.

Related: rhbz#1847490
This commit is contained in:
Brian C. Lane 2020-06-16 16:36:42 -07:00
parent eece1686c5
commit ce4b4cef4f

View File

@ -26,7 +26,7 @@ import urllib3
# https://github.com/docker/docker-py/blob/master/docker/transport/unixconn.py
class UnixHTTPConnection(httplib.HTTPConnection, object):
def __init__(self, socket_path, timeout=60):
def __init__(self, socket_path, timeout=60*5):
"""Create an HTTP connection to a unix domain socket
:param socket_path: The path to the Unix domain socket
@ -48,7 +48,7 @@ class UnixHTTPConnection(httplib.HTTPConnection, object):
class UnixHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
def __init__(self, socket_path, timeout=60):
def __init__(self, socket_path, timeout=60*5):
"""Create a connection pool using a Unix domain socket
:param socket_path: The path to the Unix domain socket