]> granicus.if.org Git - python/commit
FreeBSD's services file contains an additional echo service entry, with
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 12 Jul 2004 12:10:30 +0000 (12:10 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 12 Jul 2004 12:10:30 +0000 (12:10 +0000)
commit18bf43c4a4ca170f175207e3875788709b296248
tree6b67a1e52532f681b6751f028d480beea29c537a
parentfd4984d1fcb208150fec3aa69286e269f3f10090
FreeBSD's services file contains an additional echo service entry, with
a non-standard protocol and on a lower port than the tcp/udp entries,
which breaks the assumption that there will only be one service by a
given name on a given port when no protocol is specified.

Previous versions of this code have had other problems as a result of
different service definitions amongst common platforms.  As this platform
has an extra, unexpected, service entry, I've special cased the platform
rather than re-order the list of services checked to highlight the pitfall.
Lib/test/test_socket.py