FTP上传图片不定时出现错误,求解!

是这样的使用server-u搭建的服务器,flashfxp搭建的FTP客户端,在上传图片是,不定时在以下函数出现错误,导致上传失败,就高人解答。
每次都是这个地方出异常
       * @return True if successfully completed, false if not.
 1234        * @exception FTPConnectionClosedException
 1235        *      If the FTP server prematurely closes the connection as a result
 1236        *      of the client being idle or some other reason causing the server
 1237        *      to send FTP reply code 421.  This exception may be caught either
 1238        *      as an IOException or independently as itself.
 1239        * @exception IOException  If an I/O error occurs while either sending a
 1240        *      command to the server or receiving a reply from the server.
 1241        ***/
 1242       public boolean completePendingCommand() throws IOException
 1243       {
 1244           return FTPReply.isPositiveCompletion(getReply());
 1245       }
 1246  

如果出现问题,马上把ftp重启下,再传,可能开始又好的,然后传多了,又阻塞了。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值