I have a client connects in using winscp to pull files from a mailbox on our server. For some reason, they connect in, disconnect, then re-connect in to pull files. Occassionally, when they have transferred the last file, we get "Server shutdown before transfer could complete!" for the comms session and the last file they collected is left in the mailbox as the host server does not get notification of it having been picked up successfully. Then when the client connects in again, the file is still present in the mailbox so is transferred again. We advised the client to put an ls -lrt prior to issuing the quit; but this has had no effect.
This is the script the client is using in batch mode:
"option batch abort\n" +
"option confirm off\n" +
"option transfer binary\n" +
"open " + SESSION + "\n" +
"get -speed=512 " + REMOTEPATH + "*" + " \"" + LOCALPATH + "\n" +
"ls -lrt\n" +
Any thoughts would be gratefully received.