It seems that the problem is that pioneers (or some underlying library) is only
trying the first address returned by getaddrinfo.  I have localhost as pointing
to both 127.0.0.1 and ::1 (I don't think I did this.  Did the debian installer
do this?).  When the ai attempts to connect to the server, it tries to connect
to ::1 and fails.  However, if I telnet to localhost 5556, telnet finds
127.0.0.1 and connects successfully.  (See output below.)  Removing localhost
from ::1 or making getaddrinfo prefer ipv4 addresses fixes the issue, but
really pioneers should be able to deal with multiple addresses. 

117:cavy-v4:~> pioneersai -n asdf
ai port is 5556
18:55:25 - Type of computer player: greedy
18:55:25 - Connecting to localhost, port 5556
18:55:25 *ERROR* Error connecting to host 'localhost': Connection refused

118:cavy-v4:~> telnet localhost 5556
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
version report
^]
telnet> close
Connection closed.

--
Itai

Itai Seggev, Knox College, Mathematics Department 

In 1997 a group of programmers started writing a desktop environment to fix a
travesty they didn't create.  Their program promptly found its way onto un*x
systems everywhere. Today, still opposed by a software monopolist, they survive
as soldiers of fortune.  If you share their vision, if you know you can help,
and if you can connect to internet, maybe you can join... the K-Team.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to