|
I'm having a problem with the Net::SSH2 module.
My case is:
I use the channel's exec() to execute a command.
I start pulling back the output.
The command causes the remote side to reboot (expected) but the connection dies uncleanly (no EOF)
When I get into this state, eof() returns true. read does not return undef. Basically everything I'd expect to be reporting problems is not.
So, how do I tell that my connection has died?
Thanks. |