Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be able to set timeout before command #3

Open
Cyrille37 opened this issue Dec 20, 2024 · 0 comments
Open

be able to set timeout before command #3

Cyrille37 opened this issue Dec 20, 2024 · 0 comments

Comments

@Cyrille37
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant