Chilkat错误:发送到输出的字节数不等于预期的数量

时间:2018-10-22 12:32:56

标签: chilkat

无法使用Chilkat从SFTP下载文件。 这是了解此问题的部分日志。

ChilkatLog:
  DownloadFileByName:
    DllDate: Aug 25 2018
    ChilkatVersion: 9.5.0.75
    UnlockPrefix: ******SSH
    Architecture: Little Endian; 64-bit
    Language: .NET 4.6 / x64 / VS2015
    VerboseLogging: 0
    SshVersion: SSH-2.0-WS_FTP-SSH_8.5.0 FIPS
    SftpVersion: 3
    downloadFileByName:
      PreserveDate: 0
      fromFilePath: /ready/test.txt
      toFilePath: c:\ready\test.txt
      OpenRemoteFile:
        sftpOpenFile:
          remotePath: /ready/test.txt
          access: readOnly
          createDisposition: openExisting
          v3Flags: 0x1
          Sent FXP_OPEN
          handle: 323130
        --sftpOpenFile
      --OpenRemoteFile
      FetchRemoteFileAttributes:
        fetchAttributes:
          filename: /ready/test.txt
          Using FXP_STAT
          Sent message to fetch attributes.
          Received SSH_FXP_ATTRS
        --fetchAttributes
        timeToFetchAttrMs: Elapsed time: 78 millisec
      --FetchRemoteFileAttributes
      remoteFileSize: 79476391
      resumeFlag: 0
      numBytesToDownload: 79476391
      soRcvBuf: 1048576
      soSndBuf: 1048576
      cryptAlgorithm: aes
      macAlgorithm: SHA-1
      compression: no
      newDownloadLoop:
        Invalid packet length
        packetLen: 0xc06c
      --newDownloadLoop
      Num bytes sent to output was not equal to the expected number.
      numBytesExpected: 79476391
      numBytesSentToOutput: 2079117
      sftpCloseHandle:
        handle: 323130
        Sent FXP_CLOSE
        Invalid packet length
        packetLen: 0x30303030
        sshReadMessage: Socket fatal error.
        Socket connection lost, channel closed.
        Failed to read expected SFTP packet.
        Failed to receive response to FXP_CLOSE
      --sftpCloseHandle
      timeToCloseHandleMs: Elapsed time: 32 millisec
      Closing local output file...
      totalTimeMs: Elapsed time: 2250 millisec
    --downloadFileByName
    Failed.
  --DownloadFileByName
--ChilkatLog

任何人都已经面临和/或已解决。请帮我弄清楚。

0 个答案:

没有答案