Fixes
-
Add timeout to
urlExists()cURL request (#315)CURLOPT_TIMEOUT(5s) - total request timeoutCURLOPT_CONNECTTIMEOUT(3s) - connection timeoutCURLOPT_FOLLOWLOCATIONwithMAXREDIRS(3) - follow redirectscurl_close()- properly clean up handle
-
Add timeout to remaining HTTP requests (#316)
Utility::urlExists()fallback: 5s stream context timeoutUtility::getHeaderFromUrl(): 5s timeoutMime::getMimeTypeByUrl(): 5s timeoutMessage::_readFile(): 10s timeout
This prevents requests from hanging indefinitely when servers don't respond.
Full Changelog: 3.12.4...3.12.5