是这样的使用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重启下,再传,可能开始又好的,然后传多了,又阻塞了。
每次都是这个地方出异常
* @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重启下,再传,可能开始又好的,然后传多了,又阻塞了。