src/Server/RetryServer.php
public function link(
        string $name,
        Identity $identity,
        SetInterface $links
    ): ServerInterface {
        try {
            $this->server->link($name, $identity, $links);
        } catch (\Throwable $e) {
            if (!$this->shouldRetryAfter($e)) {
                throw $e;
            }

            $this->server->capabilities()->refresh();
            $this->server->link($name, $identity, $links);
        }

        return $this;
    }
public function link(
        string $name,
        Identity $identity,
        SetInterface $links
    ): ServerInterface {
        try {
            $this->server->link($name, $identity, $links);
        } catch (\Throwable $e) {
            if (!$this->shouldRetryAfter($e)) {
                throw $e;
            }

            $this->server->capabilities()->refresh();
            $this->server->link($name, $identity, $links);
        }

        return $this;
    }
{@inheritdoc}