xbps_fetch_file: set a 30seconds timeout.

This commit is contained in:
Juan RP 2010-12-18 10:19:09 +01:00
parent b017f6d024
commit bc28aa77d8

View File

@ -227,6 +227,7 @@ xbps_fetch_file(const char *uri, const char *outputdir, bool refetch,
bool restart = false; bool restart = false;
fetchLastErrCode = 0; fetchLastErrCode = 0;
fetchTimeout = 30; /* 30 seconds of timeout */
/* /*
* Get the filename specified in URI argument. * Get the filename specified in URI argument.