Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Issue when uploading 0 byte file

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
sim00

Issue when uploading 0 byte file

-WinSCP version: 5.7.7 (happens with 5.0.9, 5.5.6 as well)
-OS: WS2008R2 (happens with Windows7 as well)
-Protocol: FTP
-Happens both in GUI(commander) and script
-FTP Server: Global Scape EFT Server 6.5.0.2

I'm facing an issue with WinSCP when I upload 0 byte file to this particular FTP server in the internal network.

When I upload a 0 byte file, WinSCP would wait for 15 seconds and disconnect saying "Connection Timeout".
It would retry afterwards, and face "Permission Denied" error from the server.

Funny part is that the 0 byte file is actually uploaded and present in the destination folder.
Still WinSCP.com will return error status (ERRORLEVEL=1) and causes the batch to fail, which is not desirable.

If I use other FTP clients like ftp.exe or Filezilla, or if the file length is more than 1 byte, the issue does not reproduce.

Attaching Level2 log for your reference.
Thanks for your support in advance.

The error messages around 2016-03-23 10:17:10.059 are localized version of WSAENOTCONN.
(A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto) no address was supplied.)

**Command line
>WinSCP.com /script=testscript.txt /log=ftplog.txt /loglevel=2

**Script File
option batch on
option confirm off
open ftp://(id):(pw)@(server)

option transfer binary
cd "/dest_folder"
put $$test.csv.eof

close
exit