This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 5e137c62d5110cc735b4e71f7cf679417765d980
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Sep 16 11:27:11 2023 -0400

    Partial patch: Bulletproof TFTPServerPathTest #173 from Jakub Kupczyk
---
 src/test/java/org/apache/commons/net/tftp/TFTPServer.java | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java 
b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
index c6fc2efe..ffd26d72 100644
--- a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
+++ b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
@@ -610,7 +610,7 @@ public class TFTPServer implements Runnable, AutoCloseable {
     }
 
     /**
-     * Get the current value for maxTimeoutRetries
+     * Gets the current value for maxTimeoutRetries
      *
      * @return the max allowed number of retries
      */
@@ -619,7 +619,16 @@ public class TFTPServer implements Runnable, AutoCloseable 
{
     }
 
     /**
-     * The current socket timeout used during transfers in milliseconds.
+     * Gets the server port number
+     *
+     * @return the server port number
+     */
+    public int getPort() {
+        return port;
+    }
+
+    /**
+     * Gets the current socket timeout used during transfers in milliseconds.
      *
      * @return the timeout value
      */

Reply via email to