Fix UDP services (ie: DNS)

This commit is contained in:
2024-11-26 17:03:59 +11:00
parent 38c68982ec
commit 6c36f7f9aa
2 changed files with 10 additions and 4 deletions

View File

@@ -155,7 +155,8 @@ final class SocketServer {
$r = new SocketClient($this->server);
if ($r->hasData(30)) {
$this->handler[0]->{$this->handler[1]}($r);
if (! ($this->handler[0]->{$this->handler[1]}($r)))
exit(0);
// Sleep so our thread has a chance to pick up the data from our connection
usleep(50000);