Removed usleep command (#6468)
* Removed usleep command * Update event_socket.php
This commit is contained in:
@@ -72,7 +72,6 @@ class event_socket {
|
|||||||
$kv = explode(':', $line, 2);
|
$kv = explode(':', $line, 2);
|
||||||
$content[trim($kv[0])] = trim($kv[1]);
|
$content[trim($kv[0])] = trim($kv[1]);
|
||||||
}
|
}
|
||||||
usleep(1000);
|
|
||||||
|
|
||||||
if (feof($this->fp)) {
|
if (feof($this->fp)) {
|
||||||
break;
|
break;
|
||||||
@@ -114,7 +113,8 @@ class event_socket {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
socket_set_blocking($fp, false);
|
socket_set_timeout($fp, 0, 1000);
|
||||||
|
socket_set_blocking($fp, true);
|
||||||
$this->fp = $fp;
|
$this->fp = $fp;
|
||||||
|
|
||||||
// Wait auth request and send response
|
// Wait auth request and send response
|
||||||
|
|||||||
Reference in New Issue
Block a user