Thanks! But I'm not using pthread in my application. I'm using windows thread. I'm not pretty sure if sshlib supports threads other than pthread.
Regards, Mark Mark Anthony G. Santos Sr. Software Engineer, Product Development office: 63 976-3600 ext. 779630 | mobile: 63 9423794048 [email protected] / / http://www.infor.com -----Original Message----- From: Andreas Schneider [mailto:[email protected]] Sent: Tuesday, September 22, 2015 4:17 PM To: [email protected] Subject: Re: Packet corrupt when high latency On Tuesday 22 September 2015 04:29:36 Mark Anthony Santos wrote: > Hello, > > I'm using sshlib in my application which is connecting to AIX server. > I have > 2 threads one for writing in channel and one for reading from the channel. > I noticed that when the latency from client to server is high ( > 200 > ms) there's a high probability that I will receive a corrupted packet > when I do successive write. Perhaps you can give me some advice how to > avoid this kind of error. You will find the answer here: http://api.libssh.org/master/libssh_tutor_threads.html Cheers, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org [email protected]
