public function setTimeout(int $seconds, int $microseconds = 0): self
    {
        $this->timeout = (float) ($seconds . '.' . $microseconds);
        stream_set_timeout($this->resource, $seconds, $microseconds);
        return $this;
    }
public function setTimeout(int $seconds, int $microseconds = 0): self
    {
        $this->timeout = (float) ($seconds . '.' . $microseconds);
        stream_set_timeout($this->resource, $seconds, $microseconds);
        return $this;
    }
public function setTimeout ( int $ seconds , int $ microseconds = 0 ) : self { $ this -> timeout = ( float ) ( $ seconds . '.' . $ microseconds ) ; stream_set_timeout ( $ this -> resource , $ seconds , $ microseconds ) ; return $ this ; }
set timeout for connections

@param   int  $seconds       timeout for connection in seconds
@param   int  $microseconds  optional  timeout for connection in microseconds
@return  $this
set timeout for connections