[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] libssh: libhpp: avoid unnecessary call to ssh_channel_read
[Thread Prev] | [Thread Next]
- Subject: [PATCH 2/3] libssh: libhpp: avoid unnecessary call to ssh_channel_read
- From: Petar Koretic <petar.koretic@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 20 Mar 2014 09:59:42 +0000
- To: libssh@xxxxxxxxxx
ssh_channel_read is a wrapper for ssh_channel_read_timeout with timeout -1 (infinite) so we call that directly. Signed-off-by: Petar Koretic <petar.koretic@xxxxxxxxxx> --- include/libssh/libsshpp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index b516951..0cf945b 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -485,7 +485,7 @@ public: /* handle int overflow */ if(count > 0x7fffffff) count = 0x7fffffff; - err=ssh_channel_read(channel,dest,count,is_stderr); + err=ssh_channel_read_timeout(channel,dest,count,is_stderr,-1); ssh_throw(err); return err; } -- 1.9.0
Archive administrator: postmaster@lists.cynapses.org