http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59506
--- Comment #4 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> --- Author: ian Date: Fri Dec 27 21:42:26 2013 New Revision: 206224 URL: http://gcc.gnu.org/viewcvs?rev=206224&root=gcc&view=rev Log: PR go/59506 net: use DialTimeout in TestSelfConnect Backported from master repository. This avoids problems with systems that take a long time to find out nothing is listening, while still testing for the self-connect misfeature since a self-connect should be fast. With this we may be able to remove the test for non-Linux systems. Tested (on GNU/Linux) by editing selfConnect in tcpsock_posix.go to always return false and verifying that TestSelfConnect then fails with and without this change. Idea from Uros Bizjak. Modified: trunk/libgo/go/net/dial_test.go