Update event socket timing for waiting for results.

This commit is contained in:
Mark Crane
2015-03-16 21:59:08 +00:00
parent 92a1074238
commit 5f2002d352
+2 -2
View File
@@ -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 //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 if ($content_length > 0) { //is content_length set
//stop reading if all content has been read. //stop reading if all content has been read.