Skip Menu |

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

Report information
The Basics
Id: 66433
Status: open
Priority: 0/
Queue: Net-SSH-Perl

Owner: Nobody in particular
Requestors: sagarveerla [...]

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

Subject: Timeout option for ssh command
Date: Mon, 7 Mar 2011 10:23:20 +0930
To: bug-Net-SSH-Perl [...]
From: Sagar Veerla <sagarveerla [...]>
Download (untitled) / with headers
text/plain 237b
Hi, This is a but or not am not sure. However i would like to clarify. Will a ssh command time out using Net::SSH::Perl. I tried by passing Connection Timeout param but which is of of no use? Could you please clarify? Thanks, Sagar
From: aparadis1 [...]
Download (untitled) / with headers
text/plain 478b
Hi, I apply this patch, it's work I added the following to, right after the socket creation to give me a send/receive timeout of 10 seconds: setsockopt($sock, SOL_SOCKET, SO_SNDTIMEO, pack('LL', 10, 0) ) or die $!; setsockopt($sock, SOL_SOCKET, SO_RCVTIMEO, pack('LL', 10, 0) ) or die $!;
From: aparadis1 [...]

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to