diff options
| author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-27 21:42:26 +0000 |
|---|---|---|
| committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-27 21:42:26 +0000 |
| commit | 6d196b4d5a0ecffc3b93543ef404fcabad280752 (patch) | |
| tree | bb4889ca199becb32f662feed26f5fa02c506219 /libjava/classpath/gnu/java/awt/ClasspathToolkit.java | |
| parent | affa436aec0c9a328d2791413b943a46a4eed123 (diff) | |
| download | ppe42-gcc-6d196b4d5a0ecffc3b93543ef404fcabad280752.tar.gz ppe42-gcc-6d196b4d5a0ecffc3b93543ef404fcabad280752.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/gnu/java/awt/ClasspathToolkit.java')
0 files changed, 0 insertions, 0 deletions

