1
0
Fork 0

set timeout

This commit is contained in:
Christopher Latza 2020-06-07 20:56:02 +02:00
parent ce2376d38e
commit e59a874ee7
1 changed files with 3 additions and 1 deletions

View File

@ -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
]
];