From: Naoki Kambe Date: Mon, 26 Sep 2011 13:24:35 +0000 (+0900) Subject: [1175] correct the comment of the function according to its purpose X-Git-Tag: perftcpdns_before_epoll~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3efca5f9b7b7bfeac53044fdd44e5add61397157;p=thirdparty%2Fkea.git [1175] correct the comment of the function according to its purpose --- diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py index a066251313..34a260d2db 100644 --- a/src/bin/stats/tests/b10-stats-httpd_test.py +++ b/src/bin/stats/tests/b10-stats-httpd_test.py @@ -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,