Increase the limit in the loop to allow more data across event socket.

This commit is contained in:
Mark Crane
2015-04-24 04:43:32 +00:00
parent dfaa7b1aed
commit a9fce962df

View File

@@ -290,7 +290,6 @@ function build_menu() {
}
function event_socket_create($host, $port, $password) {
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
socket_set_blocking($fp,false);
@@ -346,7 +345,7 @@ function event_socket_request($fp, $cmd) {
usleep(50); //allow time for reponse
//prevent an endless loop //optional because of script timeout
if ($i > 8000) { break; }
if ($i > 30000) { break; }
if ($content_length > 0) { //is content_length set
//stop reading if all content has been read.