xbps_fetch_file: set a 30seconds timeout.
This commit is contained in:
parent
b017f6d024
commit
bc28aa77d8
@ -227,6 +227,7 @@ xbps_fetch_file(const char *uri, const char *outputdir, bool refetch,
|
||||
bool restart = false;
|
||||
|
||||
fetchLastErrCode = 0;
|
||||
fetchTimeout = 30; /* 30 seconds of timeout */
|
||||
|
||||
/*
|
||||
* Get the filename specified in URI argument.
|
||||
|
Loading…
Reference in New Issue
Block a user