Skip Menu |

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

Report information
The Basics
Id: 84940
Status: resolved
Priority: 0/
Queue: Net-Appliance-Session

People
Owner: OLIVER [...] cpan.org
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

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



Subject: global timeout option
Please add a timeout option to the connect_options which is used as connection and command execution timeout. If it's later required to separate those two it can be used as default value which is overridden by the connect/command timeout. Thanks!
Hi, Many thanks for this feature request. I've updated Net::Applaince::Session to support the timeout option (actually it's not within connect_options, I was mistaken - you just pass timeout to new). The new release of Net::Appliance::Session on CPAN is 4.131210. regards, oliver.
That was quick, thanks Oliver!
Hi again, I've fixed the problem with setting a default timeout, which was an issue with lazy loading and around(), inside Net::CLI::Interact. However so far, the default timeout will only be used on commands, and not for the initial connection. Is it important for you to set the timeout for the initial connection, also? regards, oliver.
I can confirm that the timeout option works now as expected and commands taking more than 10 seconds finish correctly with a timeout of 20 seconds.