Topic "Get File Transfer Breaks, if server not pusing hard enough"

Author Message
James
[View user's profile]

Joined: 2003-11-19
Posts: 2
The get (from server) file transfer breaks with WinSCP, if SSH_FXP_DATA does not return the number of bytes requested (<). This may be reason for of the some SFTP copies that fail for larger file transfers. I understand that WinSCP is attempting to maximize the channel by sending future requests. Perhaps, if the server is not sending back full messages in the SSH_FXP_READ requests that the client sets a flag, which will indicate that the client should go into a get-and-wait state for future SSH_FXP_READ messages.

putty/sftp.c::int xfer_download_gotpkt(struct fxp_xfer *xfer, struct sftp_packet *pktin)

I agree with the comment in the code that filling in the gaps would be very difficult.

Regards,
James
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
James wrote:
I agree with the comment in the code that filling in the gaps would be very difficult.

However that's is probably the way I'll go. Maybe in next version.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License