diff --git a/shared/utils.php b/shared/utils.php index 6c8284c..0c97bd6 100644 --- a/shared/utils.php +++ b/shared/utils.php @@ -64,6 +64,8 @@ function sendWuPostRequest($url, $postData) { curl_setopt($req, CURLOPT_RETURNTRANSFER, 1); curl_setopt($req, CURLOPT_ENCODING, ''); curl_setopt($req, CURLOPT_POSTFIELDS, $postData); + curl_setopt($req, CURLOPT_CONNECTTIMEOUT, 5); + curl_setopt($req, CURLOPT_TIMEOUT, 15); curl_setopt($req, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($req, CURLOPT_HTTPHEADER, array( 'User-Agent: Windows-Update-Agent/10.0.10011.16384 Client-Protocol/2.50',