Skip to content

be able to set timeout before command #3

@Cyrille37

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.

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