[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ssh_channel_read is failing, it is returning -1 . Please suggest a workaround or solution
[Thread Prev] | [Thread Next]
- Subject: Re: ssh_channel_read is failing, it is returning -1 . Please suggest a workaround or solution
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 27 Mar 2020 06:26:26 +0100
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
- Cc: "V Sidnal, Nagraju" <nagraju.sidnal@xxxxxxxxxxx>
On Friday, 6 March 2020 11:12:21 CET V Sidnal, Nagraju wrote: > 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. The remote has closed the channel. You can't read anymore. See https://api.libssh.org/stable/ group__libssh__channel.html#gab2720b44cb7f1dfe2b38ffe07c2f45c7 Andreas -- Andreas Schneider asn@xxxxxxxxxxxxxx GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
ssh_channel_read is failing, it is returning -1 . Please suggest a workaround or solution | "V Sidnal, Nagraju" <nagraju.sidnal@xxxxxxxxxxx> |