Skip to content

Commit

Permalink
Request Timeout Test Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tempusfrangit committed Nov 20, 2024
1 parent 3d9c298 commit 9277997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cog/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def __wrapped__(self) -> Any:
except AttributeError:
pass
url = object.__getattribute__(self, "__url__")
resp = requests.get(url, stream=True, timeout=None)
resp = requests.get(url, stream=True, timeout=20)
resp.raise_for_status()
resp.raw.decode_content = True
object.__setattr__(self, "__target__", resp.raw)
Expand Down

0 comments on commit 9277997

Please sign in to comment.