ftpClient的连接超时设置(setConnectTimeout,setSoTimeout)

    从 ftpClient的官方网的FAQ里面看到,实现这个需要用一个 自定义的SocketFactory 然后实现里面的 createSocket方法,有好多个。 http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions 原文如下: Q: How can I set a connection timeout? A: setDefaultTimeout does not set the connect timeout. It provides a default socket timeout. Only in J2SE 1.4 was the abilit...阅读全文
    作者:blackfish | 分类:Java | 阅读:13,074 views | 标签:,