Skip to content

Commit dadc9e8

Browse files
committed
Increased timeout
1 parent 5506000 commit dadc9e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

LinkIPFSPlugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ def actionWrapper(self, path, extra_headers=None):
1717
if path.startswith("/ipfs/") or path.startswith("/ipns/"):
1818
local_url = "http://127.0.0.1:8080%s" % (path)
1919
gateway_url = "https://ipfs.io%s" % (path)
20+
local_timeout = 3
2021
try:
2122
request = Request(local_url)
22-
response = urlopen(request, timeout=1)
23+
response = urlopen(request, timeout=local_timeout)
2324
return self.actionRedirect302(local_url)
2425
except (HTTPError, URLError) as err:
2526
return self.actionRedirect302(gateway_url)

0 commit comments

Comments
 (0)