From fde1aff5ba8d03f74beae048e18bebdebf8e8921 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 20 Jan 2015 01:16:10 +0000 Subject: [PATCH] Change the number of allowed loops for event socket to 2000 to prevent registrations from being truncated. --- resources/switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/switch.php b/resources/switch.php index 63ecea65a4..485779555d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -323,7 +323,7 @@ function event_socket_request($fp, $cmd) { usleep(20); //allow time for reponse //prevent an endless loop //optional because of script timeout - if ($i > 1000) { break; } + if ($i > 2000) { break; } if ($content_length > 0) { //is content_length set //stop reading if all content has been read.