commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1786588 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
Date Sun, 12 Mar 2017 14:39:10 GMT
Author: sebb
Date: Sun Mar 12 14:39:10 2017
New Revision: 1786588

URL: http://svn.apache.org/viewvc?rev=1786588&view=rev
Log:
COunt IOErrors for debug

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=1786588&r1=1786587&r2=1786588&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java Sun Mar
12 14:39:10 2017
@@ -3763,6 +3763,7 @@ implements Configurable
      * <li>successfully acked NOOPs at end of transfer</li>
      * <li>unanswered NOOPs at end of transfer</li>
      * <li>unanswered NOOPs after fetching additional replies</li>
+     * <li>Number of IOErrors ignored</li>
      * </ul>
      * @return the debug array
      * @deprecated 3.7 For testing only; may be dropped or changed at any time
@@ -3888,6 +3889,7 @@ implements Configurable
         private long time = System.currentTimeMillis();
         private int notAcked;
         private int acksAcked;
+        private int ioErrors;
 
         CSL(FTPClient parent, long idleTime, int maxWait) throws SocketException {
             this.idle = idleTime;
@@ -3912,6 +3914,7 @@ implements Configurable
                 } catch (SocketTimeoutException e) {
                     notAcked++;
                 } catch (IOException e) {
+                    ioErrors++;
                     // Ignored
                 }
                 time = now;
@@ -3934,7 +3937,7 @@ implements Configurable
             } finally {
                 parent.setSoTimeout(currentSoTimeout);
             }
-            return new int [] {acksAcked, remain, notAcked}; // debug counts
+            return new int [] {acksAcked, remain, notAcked, ioErrors}; // debug counts
         }
 
     }



Mime
View raw message