Skip to content

Commit

Permalink
Merge pull request #316 from callumrollo/callum-patch-13
Browse files Browse the repository at this point in the history
increase default httpx timeout to 60 seconds
  • Loading branch information
ocefpaf authored Aug 8, 2023
2 parents d8bdf3f + 6a7bd5c commit 346506d
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 346506d

Please sign in to comment.