[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh_channel_read is failing, it is returning -1 . Please suggest a workaround or solution


Hi Team,

I'm executing some 10 commands randomly in infinite loop, however every some milliseconds I observe that  ssh_channel_read is failing, it is returning -1
Some logs for your reference.
[2020/03/06 14:51:53.506869, 2] channel_rcv_change_window:  Adding 2097152 bytes to channel (341:0) (from 0 bytes)
[2020/03/06 14:51:53.506869, 2] channel_request:  Channel request exec success
[2020/03/06 14:51:53.538119, 2] grow_window:  growing window (channel 341:0) to 1280000 bytes
[2020/03/06 14:51:53.553741, 2] channel_open:  Creating a channel 342 with 64000 window and 32768 max packet
[2020/03/06 14:51:53.553741, 2] ssh_packet_channel_open_conf:  Received a CHANNEL_OPEN_CONFIRMATION for channel 342:0
[2020/03/06 14:51:53.553741, 2] ssh_packet_channel_open_conf:  Remote window : 0, maxpacket : 32768
succes 1
[2020/03/06 14:51:53.553741, 2] channel_rcv_change_window:  Adding 2097152 bytes to channel (342:0) (from 0 bytes)
[2020/03/06 14:51:53.553741, 2] channel_request:  Channel request exec success
[2020/03/06 14:51:53.600633, 2] grow_window:  growing window (channel 342:0) to 1280000 bytes
[2020/03/06 14:51:53.600633, 1] ssh_channel_read_timeout:  Remote channel is closed.

I tried using ssh_channel_read_timeout with infinite timeout , it is also giving same error.

Please help me with this error.

Regards,
Nagraju


Archive administrator: postmaster@lists.cynapses.org