Skip to content

be able to set timeout before command聽#3

Description

@Cyrille37

Hi

Thanks for this fork, I hope you'll be able to keep it up 馃樃

The timeout() is only available at connection time, but SSH2 use it at each exec() call, so it could be nice to permit too.

something like replacing :

    public function timeout(int $timeout): self
    {
        $this->timeout = $timeout;
        return $this;
    }

by

    public function timeout(int $timeout): self
    {
        $this->timeout = $timeout;
        if( $this->ssh )
            $this->ssh->setTimeout($this->timeout);
        return $this;
    }

Thanks & cheers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions