set timeout
This commit is contained in:
parent
ce2376d38e
commit
e59a874ee7
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
include "config.php";
|
include "config.php";
|
||||||
|
|
||||||
|
ini_set("default_socket_timeout", 10);
|
||||||
|
|
||||||
echo "StreamURL: ".$StreamURL."\n";
|
echo "StreamURL: ".$StreamURL."\n";
|
||||||
echo "DiscordWebhook: ".$DiscordWebhook."\n";
|
echo "DiscordWebhook: ".$DiscordWebhook."\n";
|
||||||
|
|
||||||
|
@ -31,7 +33,7 @@ while(TRUE)
|
||||||
'http' => [
|
'http' => [
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'header' => 'Content-Type: application/json',
|
'header' => 'Content-Type: application/json',
|
||||||
'timeout' => 5.0,
|
'timeout' => 5,
|
||||||
'content' => $jsonMessage
|
'content' => $jsonMessage
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue