diff --git a/src/SmsSenderUtil.php b/src/SmsSenderUtil.php index 037e107..c4f3146 100644 --- a/src/SmsSenderUtil.php +++ b/src/SmsSenderUtil.php @@ -119,6 +119,7 @@ class SmsSenderUtil curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); + curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($dataObj)); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);