Drop cURL timeout down to 10 seconds incase of Discord downtime

This commit is contained in:
Jayden Bailey
2019-07-19 16:40:20 +01:00
parent 9a7dd03d5c
commit fb9ada8f9c
+1 -1
View File
@@ -109,7 +109,7 @@ class DiscordUtils {
curl_setopt( $c_handlers[$value], CURLOPT_HEADER, 0 );
curl_setopt( $c_handlers[$value], CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $c_handlers[$value], CURLOPT_CONNECTTIMEOUT, 10 ); // Add a timeout for connecting to the site
curl_setopt( $c_handlers[$value], CURLOPT_TIMEOUT, 20 ); // Do not allow cURL to run for a long time
curl_setopt( $c_handlers[$value], CURLOPT_TIMEOUT, 10 ); // Do not allow cURL to run for a long time
curl_setopt( $c_handlers[$value], CURLOPT_USERAGENT, $user_agent ); // Add a unique user agent
curl_multi_add_handle( $mh, $c_handlers[$value] );
}