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