commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Schmidt" <gregor.schm...@utanet.at>
Subject [net] FTP client fails if a modem connection is used
Date Wed, 25 Jul 2012 17:56:21 GMT
Hello,

I use the FTPClient class (API 3.0.1) for FTP file transfers. It works fine as long as the
internet connection is fast enough, e. g. 150 kbit/s and above. With a modem connection at
56 kbit/s I can connect the server but I get a read time out after the transfer of the file
to the server (size 31 kByte). Files on the server couldn't be downloaded at all. Available
FTP programs (WS-FTP etc.) don't have any problems with such a low bitrate connection.

It may be that an appropriate setting of the various timeout values could solve the problem.
Unfortunately I'm not a specialist in FTP or networking in general. The current settings are:
DefaultTimeout = 0 (default)
SocketTimeout = 0 (default)
ConnectTimeout = 0 (default)
ControlKeepAliveTimeout = 300 seconds, set according to the example in the API description
ControlKeepAliveReplyTimeout = 1000 milliseconds (default)

Does somebody know an appropriate setting of the timeouts or a different solution for my problem?

Best regards,
Gregor

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message