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

Re: Scp using libssh 0.4.1


Hi Irfan,

Could you try with libssh in git on branch v0-4 ?
The problem was (at least for me) a race condition in ssh_scp_close
which caused the channel and session to be shut down before the remote
scp had finished the file copy.

Please give me your feedback.

Regards,

Aris

Aris Adamantiadis a écrit :
> Hi Irfan,
> 
> I was able to reproduce partially the odd behaviour you have (it does
> create a file but it's truncated).
> 
> I'll tell you when I find a solution.
> 
> Regards,
> 
> Aris
> 
> irfan naseef a écrit :
>> Hi all,
>>
>> iam using libssh 0.4.1 for a software. There i want to upload (scp ) a
>> file to a remote server. For that i defined the following function.
>>  http://slexy.org/view/s20SGtv76p
>> But when i tried to run this , only a blank file is created at the
>> remote server.So i tried to print the buffer and i found that contents
>> are successfully read into the buffer , but it is not written to the
>> file. So,according to a friend at #libssh, i tried running this with
>> ltrace and output is here: http://slexy.org/view/s2he9ESYgw
>>
>> Somebody please help me .
> 

Follow-Ups:
Re: Scp using libssh 0.4.1irfan naseef <irfannaseefp@xxxxxxxxx>
References:
Re: Scp using libssh 0.4.1Aris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org