[squeak-dev] Socket tests may choke

Tobias Pape Das.Linux at gmx.de
Mon Sep 7 21:59:41 UTC 2015


Hi all

I'm just debugging strange things on a jenkins slave
(thanks Tony!) and found that some socket tests choke
because:
- localhost there is 127.0.0.1
- BUT the local host name (squeak-debian32, but irrelevant) is 127.0.1.1
This is documented for debian systems[1].

Yet, in SocketTest, there's a testRemoteAddress, that uses a
listenerSocket (that on that system will listen on 127.0.1.1) but once it
accepts a client connection (from 127.0.1.1), the serverSocket (that gets initalized
via the listenerSocket) reports 127.0.0.1 for its remote address, and hence the test fails.

Similar for testLocalAddress, when connecting to 127.0.1.1, the clients local address
reports 127.0.0.1. Is primitiveSocketLocalAddress broken?

Best regards
	-Tobias


[1]: https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution


More information about the Squeak-dev mailing list