Skip to content
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

cmd/go: go get timeout under some proxy required environment #9447

Closed
ghost opened this issue Dec 26, 2014 · 6 comments
Closed

cmd/go: go get timeout under some proxy required environment #9447

ghost opened this issue Dec 26, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 26, 2014

package code.google.com/p/go.net/websocket: Get https://code.google.com/p/go/source/checkout?repo=net: dial tcp 173.194.117.226:443: i/o timeout

i do not know why.

@ghost
Copy link
Author

ghost commented Dec 26, 2014

* Connected to code.google.com (127.0.0.1) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
*       subject: CN=*.google.com,O=Google Inc,L=Mountain View,ST=California,C=US
*       start date: 12月 10 11:54:23 2014 GMT
*       expire date: 3月 10 00:00:00 2015 GMT
*       common name: *.google.com
*       issuer: CN=Google Internet Authority G2,O=Google Inc,C=US
> GET /p/go/source/checkout?repo=net: HTTP/1.1
> User-Agent: curl/7.37.0
> Host: code.google.com
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Fri, 26 Dec 2014 09:00:39 GMT
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Cache-Control: no-cache, must-revalidate
< X-Content-Type-Options: nosniff
< Content-Type: text/html; charset=UTF-8
< Set-Cookie: PREF=ID=b1cb400fb4b6dbf6:TM=1419584439:LM=1419584439:S=gJMeotvEV1fV-HS9; expires=Sun, 25-Dec-2016 09:00:39 GMT; path=/; domain=.google.com
* Server codesite is not blacklisted
< Server: codesite
< Content-Length: 1455
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< Alternate-Protocol: 443:quic,p=0.02
<                                                                                                                                          
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/p/go/source/checkout?repo=net:</code> was not found on this server.  <ins>That’s all we know.</ins>
* Connection #0 to host code.google.com left intact

directly curl the url is working.

@mikioh mikioh changed the title go get package timeout cmd/go: go get timeout under some proxy environment Dec 26, 2014
@mikioh
Copy link
Contributor

mikioh commented Dec 26, 2014

In the case of curl:

Connected to code.google.com (127.0.0.1) port 443 (#0)

I have no clue. It looks like you are using some sot of transport intemediate stuff. Probably you may need some envrionment variable such as HTTP_PROXY.

@mikioh mikioh changed the title cmd/go: go get timeout under some proxy environment cmd/go: go get timeout under some proxy required environment Dec 26, 2014
@ghost
Copy link
Author

ghost commented Dec 26, 2014

I would like to share the latest information:

  1. i am using proxy, because google was blocked in china.
  2. After many time retry again and retry and retry. i finally success download the package.

so, the question is :

  1. Did the timeout hardcode in the go binary command?
  2. how to prevent timeout be fired (the network may not be good enough, so we need waiting for more time to got response or connection.)

@mikioh
Copy link
Contributor

mikioh commented Dec 26, 2014

  1. After many time retry again and retry and retry. i finally success download the package.

I think you need to nail down the reason; perhaps a few URL redirections.

  1. Did the timeout hardcode in the go binary command?

No, cmd/go just invokes external commands such as "git", "hg".

@minux
Copy link
Member

minux commented Dec 26, 2014

All the sub-repos has been moved. Run

go get golang.org/x/net/websocket

instead.

@minux
Copy link
Member

minux commented Dec 26, 2014

There is nothing we can do. Sorry.

@minux minux closed this as completed Dec 26, 2014
@golang golang locked and limited conversation to collaborators Jun 25, 2016
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