From: Shahzad <gl...@ho...> - 2008-12-05 18:51:06
|
Hi. I seem to be trying to debug this seemingly simple problem for a few days now...basically I seem to be running out of buffer space in perl/expect. I connect to a machine using perl/expect. Then I keep sending different messages without expecting anything, and then after some period of time the perl/expect script is not able to send any more messages as it seems to run out of some sort of buffer space. For instance if I am sending 1 message per second, I can send message for up to 14 minutes. If I am sending messages at the rate of 1 message every five seconds, the test can run for much longer (as it takes longer to fill up the buffer space). If the message length is longer, then I stop sending the messages much quicker (as the buffer size fills up quickly)....so it seems to be a buffer size related problem. I tried to extend the buffer size using: $ssh->max_accum(9000000000); and I tried to clear the buffer using: $ssh->clear_accum(); but it doesn't seem to help - as the script still stops sending commands after that fixed interval has passed away. I have been working on this problem for a few days now, so any help will be greatly appreciated. _________________________________________________________________ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 |