From a9fce962dfffe88c2d352a70323cc0278d9850ee Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 24 Apr 2015 04:43:32 +0000 Subject: [PATCH] Increase the limit in the loop to allow more data across event socket. --- resources/switch.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index 87484a7bf4..b50fe118e5 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -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.