Merge pull request #2746 from phiten/development
added 1500ms curl timeout for the push_notifications
This commit is contained in:
commit
ffa5bb326d
@ -24,7 +24,7 @@ class Notifications_NotifyMyAndroid implements IPushNotification {
|
|||||||
public function notify($message, $severity = 'info', $event = null){
|
public function notify($message, $severity = 'info', $event = null){
|
||||||
global $setting;
|
global $setting;
|
||||||
curl_setopt_array($ch = curl_init(), array(
|
curl_setopt_array($ch = curl_init(), array(
|
||||||
CURLOPT_TIMEOUT_MS => 300,
|
CURLOPT_TIMEOUT_MS => 1500,
|
||||||
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
|
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
|
||||||
CURLOPT_POST => true,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
public function notify($message, $severity = 'info', $event = null){
|
public function notify($message, $severity = 'info', $event = null){
|
||||||
curl_setopt_array($ch = curl_init(), array(
|
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_URL => "https://api.pushover.net/1/messages.json",
|
||||||
CURLOPT_POST => true,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user