]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1175] correct the comment of the function according to its purpose
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Sep 2011 13:24:35 +0000 (22:24 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 3 Oct 2011 02:52:52 +0000 (11:52 +0900)
src/bin/stats/tests/b10-stats-httpd_test.py

index a06625131304d2dc414f929a7a290a0d64452465..34a260d2db92b876dea0731066903770d1f7121b 100644 (file)
@@ -58,9 +58,14 @@ DUMMY_DATA = {
     }
 
 def get_availaddr(address='127.0.0.1', port=8001):
-    """returns tuple of address and port available to listen on the
-    platform. Default port range is between 8001 and 65535. If port is
-    over flow(greater than 65535), OverflowError is thrown"""
+    """returns a tuple of address and port which is available to
+    listen on the platform. The first argument is a address for
+    search. The second argument is a port for search. If a set of
+    address and port is failed on the search for the availability, the
+    port number is increased and it goes on the next trial until the
+    available set of address and port is looked up. If the port number
+    reaches over 65535, it may stop the search and raise a
+    OverflowError exception."""
     while True:
         for addr in socket.getaddrinfo(
             address, port, 0,