PHPDaemon\Network\Pool::attach PHP Method

attach() public method

Attach Connection
public attach ( object $conn, mixed $inf = null ) : void
$conn object Connection
$inf mixed Info
return void
    public function attach($conn, $inf = null)
    {
        parent::attach($conn, $inf);
        if ($this->maxConcurrency && !$this->overload) {
            if ($this->count() >= $this->maxConcurrency) {
                $this->overload = true;
                $this->disable();
                return;
            }
        }
    }