From 6a7bd5c6062c0546d266b14522a4a9342243334a Mon Sep 17 00:00:00 2001
From: Callum Rollo <c.rollo@outlook.com>
Date: Tue, 8 Aug 2023 16:09:49 +0200
Subject: [PATCH] increase default httpx timeout to 60 seconds

---
 erddapy/core/url.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/erddapy/core/url.py b/erddapy/core/url.py
index 88fee29..14d226a 100644
--- a/erddapy/core/url.py
+++ b/erddapy/core/url.py
@@ -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()