Skip to content

net package test hangs connecting unavailable server #1450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
garyburd opened this issue Jan 27, 2011 · 6 comments
Closed

net package test hangs connecting unavailable server #1450

garyburd opened this issue Jan 27, 2011 · 6 comments

Comments

@garyburd
Copy link
Contributor

The net package test hangs when trying to connect to 74.125.19.99:80.  I tested the
address with telnet from two different network connections (verizon, comcast) and found
that telnet also hangs.

I am guessing that the data center at 74.125.19.99 is down for scheduled maintenance. 
The tests should be updated to use the address of a service without scheduled downtime.

I am willing to submit a CL if somebody can provide a good IP address to use.
@gopherbot
Copy link
Contributor

Comment 1 by justin.d.poliey:

I am also experiencing this issue, for what it's worth:
~/g/src> hg identify
d8ba80011a98 release.2011-01-20/release

@gopherbot
Copy link
Contributor

Comment 2 by m4cpunk:

I had this same issue. I know it's a workaround but for now you can set
DISABLE_NET_TESTS to 1 and it will happily compile.
$ export DISABLE_NET_TESTS=1
$ ./all.bash

@gopherbot
Copy link
Contributor

Comment 3 by eklitzke:

I just ran into this. It appears that 74.125.19.99 was previously an address for
www.google.com, and some tests have this IP hardcoded into them. For instance, there's
some code in ./src/pkg/net/timeout_test.go like this:
func TestTimeoutTCP(t *testing.T) {
    // 74.125.19.99 is www.google.com.
    // could use dns, but dns depends on
    // timeouts and this is the timeout test.
    testTimeout(t, "tcp", "74.125.224.49:80", false)
}   
See also ./src/pkg/net/dialgoogle_test.go. I wonder if a more "permanent" IP could be
used for this purpose.

@garyburd
Copy link
Contributor Author

@garyburd
Copy link
Contributor Author

@robpike
Copy link
Contributor

robpike commented Jan 31, 2011

Comment 6:

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants