Skip Menu |

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id: 83115
Status: resolved
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: info4 [...] bolay.co
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Global timeout
Date: Mon, 4 Feb 2013 14:57:42 +0100
To: bug-Net-SSH2 [...] rt.cpan.org
From: Informaticien 4eme <info4 [...] bolay.co>
Dear all, Having a way to set a global timeout allows to avoid long freezes when network errors occur. If I unplug the network cable after being connected and then try to open() a file through SFTP, Net::SSH2 takes about 15 minutes to detect there is a problem and returns. libssh2 (version 1.2.9) provides libssh2_session_set_timeout() which allows to set a timeout that will affect every action on the session. Best, Thierry Treyer
Subject: Re: [rt.cpan.org #83115] Global timeout
Date: Mon, 4 Feb 2013 15:40:03 -0500
To: bug-Net-SSH2 [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] gmail.com>
That should be easy to implement, I'll try to take a look this weekend or sometime soon. Feel free to send me a pull request if you want to try it yourself, the repo is at rkitover/net-ssh2 on github. On Monday, February 4, 2013 at 8:57 AM, Informaticien 4eme via RT wrote: Show quoted text
> Mon Feb 04 08:57:58 2013: Request 83115 was acted upon. > Transaction: Ticket created by info4@bolay.co (mailto:info4@bolay.co) > Queue: Net-SSH2 > Subject: Global timeout > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: info4@bolay.co (mailto:info4@bolay.co) > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83115 > > > > Dear all, > > Having a way to set a global timeout allows to avoid long freezes when > network errors occur. > > If I unplug the network cable after being connected and then try to open() > a file through SFTP, Net::SSH2 takes about 15 minutes to detect there is a > problem and returns. > > libssh2 (version 1.2.9) provides libssh2_session_set_timeout() which allows > to set a timeout that will affect every action on the session. > > Best, > > Thierry Treyer
Merged pullreq from requestor and released in 0.47.