-WinSCP version: 5.7.7 (happens with 5.0.9, 5.5.6 as well)
-OS: WS2008R2 (happens with Windows7 as well)
-Happens both in GUI(commander) and script
-FTP Server: Global Scape EFT Server 188.8.131.52
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.)
>WinSCP.com /script=testscript.txt /log=ftplog.txt /loglevel=2
option batch on
option confirm off
option transfer binary