in reply to Timeout parameter for Net::Telnet under Windows
Well, this is silly. Net::Telnet wants to time out with alarm(), although IO::Socket has a better method — non-blocking connect — that ought to work on Windows, too.
Perhaps you could try to outsmart the Net::Telnet? Create your object sans Host/Timeout; connect with open() instead. Then slip a sneaky $t->SUPER::timeout(1); before the open. Just an idea...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Timeout parameter for Net::Telnet under Windows
by SwaJime (Scribe) on Jan 22, 2016 at 18:14 UTC | |
by Mr. Muskrat (Canon) on Jan 22, 2016 at 19:07 UTC | |
by SwaJime (Scribe) on Jan 22, 2016 at 19:44 UTC | |
by Mr. Muskrat (Canon) on Jan 22, 2016 at 19:51 UTC |