WinGate 6: FTP via SSH fails on short files?

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

WinGate 6: FTP via SSH fails on short files?

Postby kalvos » Aug 11 04 3:19 am

Hi,

I typically go through SSH port 22 using FTP. Since installing WinGate 6, this is failing on files shorter than 24K. It creates a new connection, reissues the command, and uploads an incomplete file. (It leaves the broken connections open as well.) Downloads are fine.

Upload does work properly using secure FTP, but I prefer FTP through SSH because it works slightly faster for uploading hundreds of files in a batch.

Does anyone else see this?

Thanks,
Dennis
kalvos
 
Posts: 62
Joined: Nov 21 03 3:24 pm
Location: Vermont US

Postby adrien » Aug 13 04 12:34 am

Is this through NAT? Or SOCKS, or the WinGate Client?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby kalvos » Aug 14 04 3:32 am

adrien wrote:Is this through NAT? Or SOCKS, or the WinGate Client?


I only use WGIC.

When running WS_FTP as SFTP, the files transfer fine. SFTP, however, has a timeout on my receiving server (and the keepalive commands seem to be ignored), meaning I can't send files unattended overnight. I upload my radio show website weekly on Saturday nights after the broadcast, which includes about 90MB of material from very short HTML through very long MP3 audio.

Because of the SFTP timeout, I have always run FTP through SSH. This was not a problem with all previous versions of WinGate.

Since installing WinGate 6, FTP-through-SSH is working as usual for most files, except that files under a certain length will start to transfer, and then hang until they time out, reissue the connection command sequence, and then upload only the first part of the file and indicate the transfer is complete. I haven't been able to pin it down, but it appears under 24K, which is most of the shorter HTML pages and text files.

This is using the latest build.

Any clues?

Dennis
kalvos
 
Posts: 62
Joined: Nov 21 03 3:24 pm
Location: Vermont US

Postby adrien » Aug 16 04 12:44 pm

Hi

We're looking into this now.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby kalvos » Aug 27 04 1:55 am

adrien wrote:We're looking into this now.


Anything in there? :)

Dennis
kalvos
 
Posts: 62
Joined: Nov 21 03 3:24 pm
Location: Vermont US

Postby adrien » Aug 28 04 6:57 pm

Hi

I had a look through the code, but didn't see anything that should cause a problem like this.

The SSH connection stays open for the duration of all the FTP transactions correct?

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby kalvos » Aug 29 04 12:10 am

adrien wrote:The SSH connection stays open for the duration of all the FTP transactions correct?Adrien


Yes, I usually keep SSH open the entire time I'm working, which can sometimes be 12 hours -- or longer, if an overnight upload is involved.

All other functions, including downloads, work fine through SSH. Just the small files will start to transfer, stop, restart, the file transfer indicated as complete (correct number of bytes), but only the first part of the file will have been transferred.

I do not have WS_FTP set to reinitiate transfers of failed files, so it would just stop if this were a normal transfer failure.

It's not af function of FTP through SSH. It worked with WinGate 5, and even now I can transfer the file fine if I initiate the SSH and FTP connections on the server itself, bypassing WinGate.

SFTP itself works fine in all cases, but as I said, my server has a short inactivity timeout.

Dennis
kalvos
 
Posts: 62
Joined: Nov 21 03 3:24 pm
Location: Vermont US


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

cron