Skip to content

Commit

Permalink
increase default httpx timeout to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo committed Aug 8, 2023
1 parent d8bdf3f commit 6a7bd5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erddapy/core/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

@functools.lru_cache(maxsize=128)
def _urlopen(url: str, auth: Optional[tuple] = None, **kwargs: Dict) -> BinaryIO:
if "timeout" not in kwargs.keys():
kwargs["timeout"] = 60
response = httpx.get(url, follow_redirects=True, auth=auth, **kwargs)
try:
response.raise_for_status()
Expand Down

0 comments on commit 6a7bd5c

Please sign in to comment.