Merge pull request #2746 from phiten/development

added 1500ms curl timeout for the push_notifications
This commit is contained in:
Sebastian Grewe 2018-06-06 08:37:51 +02:00 committed by GitHub
commit ffa5bb326d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class Notifications_NotifyMyAndroid implements IPushNotification {
public function notify($message, $severity = 'info', $event = null){
global $setting;
curl_setopt_array($ch = curl_init(), array(
CURLOPT_TIMEOUT_MS => 300,
CURLOPT_TIMEOUT_MS => 1500,
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,

View File

@ -27,7 +27,7 @@
public function notify($message, $severity = 'info', $event = null){
curl_setopt_array($ch = curl_init(), array(
CURLOPT_TIMEOUT_MS => 300,
CURLOPT_TIMEOUT_MS => 1500,
CURLOPT_URL => "https://api.pushover.net/1/messages.json",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,