Increase GET timeout.
This commit is contained in:
parent
df1b9353e4
commit
575a9be627
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
|
||||||
url = urlJson.str
|
url = urlJson.str
|
||||||
|
|
||||||
try:
|
try:
|
||||||
discard getContent(url, timeout=1000)
|
discard getContent(url, timeout=5000)
|
||||||
except HttpRequestError, TimeoutError:
|
except HttpRequestError, TimeoutError:
|
||||||
echo "E: ", name, ": unable to fetch repository ", url, " ",
|
echo "E: ", name, ": unable to fetch repository ", url, " ",
|
||||||
getCurrentExceptionMsg()
|
getCurrentExceptionMsg()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue