Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed usleep command #6468

Merged
merged 2 commits into from Aug 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/classes/event_socket.php
Expand Up @@ -72,7 +72,6 @@ public function read_event() {
$kv = explode(':', $line, 2);
$content[trim($kv[0])] = trim($kv[1]);
}
usleep(1000);

if (feof($this->fp)) {
break;
Expand Down Expand Up @@ -113,8 +112,9 @@ public function connect($host, $port, $password) {
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
Expand Down