得到错误“ readFtpReply:套接字操作超时”在Android设备上使用chilkat库下载时

问题描述

我们的应用程序正在使用chilkat库从FTP / SFTP下载文件,当涉及到1 GB之类的大文件时,我们看到以下错误,但对于较小的文件却可以使用。 FTP服务器基于Windows。 对于同一个文件,如果我们使用AndFTP apk,它将完全下载该文件。

我们想确认是否需要在FTP服务器上更改任何设置,或者在客户端进行任何配置来解决该问题。


06-29 08:44:30.363 E/A(10391):   GetFile:

06-29 08:44:30.363 E/A(10391):     DllDate: May  7 2019

06-29 08:44:30.363 E/A(10391):     ChilkatVersion: 9.5.0.78

06-29 08:44:30.363 E/A(10391):     UnlockPrefix: VMWRKM.CB4062020

06-29 08:44:30.363 E/A(10391):     Architecture: Little Endian; 64-bit

06-29 08:44:30.363 E/A(10391):     Language: Android Java

06-29 08:44:30.363 E/A(10391):     VerboseLogging: 0

06-29 08:44:30.363 E/A(10391):     originalGreeting: 220 Microsoft FTP Service

06-29 08:44:30.363 E/A(10391):     remotePath: PFILES/ASRampServiceOreo_1/FPU_ATLAS_02-13-15.00-ON-U08-STD.zip

06-29 08:44:30.363 E/A(10391):     localPath: /sdcard/FPU_ATLAS_02-13-15.00-ON-U08-STD.zip

06-29 08:44:30.363 E/A(10391):     ProgressMonitoring:

06-29 08:44:30.363 E/A(10391):       enabled: yes

06-29 08:44:30.363 E/A(10391):       heartbeatMs: 0

06-29 08:44:30.363 E/A(10391):       sendBufferSize: 65536

06-29 08:44:30.363 E/A(10391):     --ProgressMonitoring

06-29 08:44:30.363 E/A(10391):     autoGetSizeForProgress:

06-29 08:44:30.363 E/A(10391):       getSize64ByName:

06-29 08:44:30.363 E/A(10391):         sizeCmd:

06-29 08:44:30.363 E/A(10391):           sizeCmdInner:

06-29 08:44:30.363 E/A(10391):             simpleCommand:

06-29 08:44:30.363 E/A(10391):               sendCommand:

06-29 08:44:30.363 E/A(10391):                 sendingCommand: SIZE PFILES/ASRampServiceOreo_1/FPU_ATLAS_02-13-15.00-ON-U08-STD.zip

06-29 08:44:30.363 E/A(10391):               --sendCommand

06-29 08:44:30.363 E/A(10391):               readCommandResponse:

06-29 08:44:30.363 E/A(10391):                 replyLineQP: 213 1059949952

06-29 08:44:30.363 E/A(10391):               --readCommandResponse

06-29 08:44:30.363 E/A(10391):             --simpleCommand

06-29 08:44:30.363 E/A(10391):           --sizeCmdInner

06-29 08:44:30.363 E/A(10391):         --sizeCmd

06-29 08:44:30.363 E/A(10391):       --getSize64ByName

06-29 08:44:30.363 E/A(10391):     --autoGetSizeForProgress

06-29 08:44:30.363 E/A(10391):     downloadToFile:

06-29 08:44:30.363 E/A(10391):       localFilePath: /sdcard/FPU_ATLAS_02-13-15.00-ON-U08-STD.zip

06-29 08:44:30.363 E/A(10391):       Replacing existing local file

06-29 08:44:30.363 E/A(10391):       downloadToOutput2:

06-29 08:44:30.363 E/A(10391):         modeZ: 0

06-29 08:44:30.363 E/A(10391):         binaryMode: 1

06-29 08:44:30.363 E/A(10391):         setupDataConnection:

06-29 08:44:30.363 E/A(10391):           passive transfer mode

06-29 08:44:30.363 E/A(10391):           setupPassiveDataSocket:

06-29 08:44:30.363 E/A(10391):             sendCommand:

06-29 08:44:30.363 E/A(10391):               sendingCommand: PASV

06-29 08:44:30.363 E/A(10391):             --sendCommand

06-29 08:44:30.363 E/A(10391):             readCommandResponse:

06-29 08:44:30.363 E/A(10391):               replyLineQP: 227 Entering Passive Mode (52,191,166,243,234,205).

06-29 08:44:30.363 E/A(10391):             --readCommandResponse

06-29 08:44:30.363 E/A(10391):             dataConnect:

06-29 08:44:30.363 E/A(10391):               hostname: 52.191.166.243

06-29 08:44:30.363 E/A(10391):               port: 60109

06-29 08:44:30.363 E/A(10391):               socketOptions:

06-29 08:44:30.363 E/A(10391):                 SO_SNDBUF: 524288

06-29 08:44:30.363 E/A(10391):                 SO_RCVBUF: 4194304

06-29 08:44:30.363 E/A(10391):                 TCP_NODELAY: 1

06-29 08:44:30.363 E/A(10391):                 SO_KEEPALIVE: 0

06-29 08:44:30.363 E/A(10391):               --socketOptions

06-29 08:44:30.363 E/A(10391):               dataConnectSuccess: 1

06-29 08:44:30.363 E/A(10391):             --dataConnect

06-29 08:44:30.363 E/A(10391):           --setupPassiveDataSocket

06-29 08:44:30.363 E/A(10391):         --setupDataConnection

06-29 08:44:30.363 E/A(10391):         sendCommand:

06-29 08:44:30.363 E/A(10391):           sendingCommand: RETR PFILES/ASRampServiceOreo_1/FPU_ATLAS_02-13-15.00-ON-U08-STD.zip

06-29 08:44:30.363 E/A(10391):         --sendCommand

06-29 08:44:30.363 E/A(10391):         readCommandResponse:

06-29 08:44:30.363 E/A(10391):           replyLineQP: 125 Data connection already open; Transfer starting.

06-29 08:44:30.363 E/A(10391):         --readCommandResponse

06-29 08:44:30.363 E/A(10391):         downloadRate: 2406259

06-29 08:44:30.363 E/A(10391):         totalNumBytesReceived: 1059949952

06-29 08:44:30.363 E/A(10391):         receiveTimeMs: Elapsed time: 440497 millisec

06-29 08:44:30.363 E/A(10391):         readCommandResponse:

06-29 08:44:30.363 E/A(10391):           Failed to read FTP control channel reply.

06-29 08:44:30.363 E/A(10391):           readFtpReply: Socket operation timeout.

06-29 08:44:30.363 E/A(10391):         --readCommandResponse

06-29 08:44:30.363 E/A(10391):         No final status reply.

06-29 08:44:30.363 E/A(10391):       --downloadToOutput2

06-29 08:44:30.363 E/A(10391):       downloadToOutput: Elapsed time: 500989 millisec

06-29 08:44:30.363 E/A(10391):     --downloadToFile

06-29 08:44:30.363 E/A(10391):     Failed.

06-29 08:44:30.363 E/A(10391):   --GetFile

06-29 08:44:30.363 E/A(10391): --ChilkatLog

06-29 08:44:30.363 E/A(10391):

06-29 08:44:30.364 I/A_FtpDownloadHandler(10391): Download failed: FPU_ chilkat TLAS_02-13-15.00-ON-U08-STD.zip```

解决方法

检查以更新至最新版本的Chilkat是否可以解决问题。最新版本是v9.5.0.83。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...