Posted on 2008-10-24 22:30:55-07 by thekat
Large output volumes cause Net::SSH2 lockups
My case: I have a command that runs on the remote system that creates a large amount of output very fast (either on STDOUT or STDERR, does not matter which) It seems there's a limit reached (value unknown) that, if this limit is hit and you 'switch' to check the other data channel, it causes locking in the module. That is, the large amount of data is on STDOUT. I read a bit of it, but bounce to make sure STDERR is not filling up, I can no longer read from STDOUT. Attempts to do so return 0 bytes, causing a "lockup" case that I cannot recover from. Anyone know how to avoid/correct this?
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.