Increase the limit in the loop to allow more data across event socket.
This commit is contained in:
parent
2d2eac5cbc
commit
d07e89d9fb
|
|
@ -290,7 +290,6 @@ function build_menu() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function event_socket_create($host, $port, $password) {
|
function event_socket_create($host, $port, $password) {
|
||||||
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
|
$fp = fsockopen($host, $port, $errno, $errdesc, 3);
|
||||||
socket_set_blocking($fp,false);
|
socket_set_blocking($fp,false);
|
||||||
|
|
@ -346,7 +345,7 @@ function event_socket_request($fp, $cmd) {
|
||||||
usleep(50); //allow time for reponse
|
usleep(50); //allow time for reponse
|
||||||
|
|
||||||
//prevent an endless loop //optional because of script timeout
|
//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
|
if ($content_length > 0) { //is content_length set
|
||||||
//stop reading if all content has been read.
|
//stop reading if all content has been read.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue