Downloader::post() timeouts should not keep the socket connected for reuse

This commit is contained in:
Thulinma 2020-08-18 22:50:29 +02:00
parent 0058937772
commit d47603615f

View file

@ -429,6 +429,7 @@ namespace HTTP{
} }
if (getSocket()){ if (getSocket()){
FAIL_MSG("Timeout while retrieving %s", link.getUrl().c_str()); FAIL_MSG("Timeout while retrieving %s", link.getUrl().c_str());
getSocket().close();
return false; return false;
} }
Util::sleep(500); // wait a bit before retrying Util::sleep(500); // wait a bit before retrying