diff options
author | alexzorin <alex@zorin.id.au> | 2022-02-28 22:16:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 22:16:58 +0300 |
commit | 3c9e690e190e47340aca539f056a4861d8bc8b0b (patch) | |
tree | e21cae52d88d7f2d436cc3ce904b714b513104cf | |
parent | 37e4f5735ae3e001a06b7f127a745da56863a772 (diff) |
snap_config: set a timeout when talking to snapd (#9218)
-rw-r--r-- | certbot/certbot/_internal/snap_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/certbot/certbot/_internal/snap_config.py b/certbot/certbot/_internal/snap_config.py index f006c8be1..dd3a6399c 100644 --- a/certbot/certbot/_internal/snap_config.py +++ b/certbot/certbot/_internal/snap_config.py @@ -54,7 +54,8 @@ def prepare_env(cli_args: List[str]) -> List[str]: session.mount('http://snapd/', _SnapdAdapter()) try: - response = session.get('http://snapd/v2/connections?snap=certbot&interface=content') + response = session.get('http://snapd/v2/connections?snap=certbot&interface=content', + timeout=30.0) response.raise_for_status() except RequestException as e: if isinstance(e, HTTPError) and e.response.status_code == 404: |