From ce4b4cef4f892f59afd39a5b4c238c98ebb9d7f0 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 16 Jun 2020 16:36:42 -0700 Subject: [PATCH] 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 --- src/composer/unix_socket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composer/unix_socket.py b/src/composer/unix_socket.py index f7a94609..f8d82aa7 100644 --- a/src/composer/unix_socket.py +++ b/src/composer/unix_socket.py @@ -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