Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
AsyncErrataAPI: Increase timeout to 15 min
Browse files Browse the repository at this point in the history
  • Loading branch information
vfreex committed May 16, 2023
1 parent 076d5a3 commit 23d1eb6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions elliottlib/errata_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import base64
from typing import Dict, Iterable, List, Set, Union
from urllib.parse import quote, urlparse
from aiohttp import ClientResponseError
from aiohttp import ClientResponseError, ClientTimeout

import aiohttp
import gssapi
from elliottlib.exectools import limit_concurrency
import re
import semver

from elliottlib.rpm_utils import parse_nvr
from elliottlib import constants, util, logutil
Expand All @@ -19,7 +17,8 @@
class AsyncErrataAPI:
def __init__(self, url: str = constants.errata_url):
self._errata_url = urlparse(url).geturl()
self._session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(limit=32, force_close=True))
self._timeout = ClientTimeout(total=60 * 15) # 900 seconds (15 min)
self._session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(limit=32, force_close=True), timeout=self._timeout)
self._gssapi_client_ctx = None
self._headers = {
"Content-Type": "application/json",
Expand Down

0 comments on commit 23d1eb6

Please sign in to comment.