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