Question:
Hi,
I have the following error log
ChilkatLog:
UploadFile:
DllDate: Aug 5 2012
UnlockPrefix: -Removed for security-
Username: XXXX:operator
Architecture: Little Endian; 32-bit
Language: .NET 2.0
VerboseLogging: 0
SshVersion: SSH-2.0-SSHD
SftpVersion: 3
handle: 30
fromPath: C:\XXXX\20121127_full.XML
uploadFile:
handle: 30
fromLocalPath: C:\XXXX\20121127_full.XML
sendAheadMaxCount: 12
localFileSize2: 488379
serverWindowSize: 2147614665
uploadChunkSize: 32000
socket is not ready for writing
idleTimeoutMs: 50000
Socket send idle timeout
Error sending data
Failed to send packet in SFTP file upload.
ResumeInfo: Can resume
ResumeInfo: Need reconnect
------------------------------------------------
totalNumBytesSent: 192000
uploadFileSuccess: 0
--uploadFile
Failed.
--UploadFile
--ChilkatLog
Which I got after calling the follow CV.NET code:
Dim handle As String
handle = sftp.OpenFile("/YYYY/" & filename, "writeOnly", "createTruncate")
success = sftp.UploadFile(handle, "C:\XXXX\" & filename)
I'm just using UploadFile but getting an error about resuming which the client's server doesn't support and is causing errors in the process, how do I go about disabling resuming so it doesn't even try and cause issues ?
Thank in advance
The "ResumeInfo" lines in the LastErrorText do not mean that the upload was being resumed. It's purely informational saying that the upload failed, and it could possibly be resumed by your application, if your application desired, and that it would need a new connection to do it.