diff --git a/resources/switch.php b/resources/switch.php index a52741a6e5..013c3ced1e 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -320,10 +320,10 @@ function event_socket_request($fp, $cmd) { } } - usleep(20); //allow time for reponse + usleep(50); //allow time for reponse //prevent an endless loop //optional because of script timeout - if ($i > 2000) { break; } + if ($i > 3000) { break; } if ($content_length > 0) { //is content_length set //stop reading if all content has been read.