- 27 Oct, 2014 1 commit
-
-
Ian Lance Taylor authored
Before this CL, if the system resolver does a very slow DNS lookup for a particular host, all subsequent requests for that host will hang waiting for that lookup to complete. That is more or less expected when Dial is called with no deadline. When Dial has a deadline, though, we can accumulate a large number of goroutines waiting for that slow DNS lookup. Try to avoid this problem by restarting the DNS lookup when it is redone after a deadline is passed. This CL also avoids creating an extra goroutine purely to handle the deadline. No test because we would have to simulate a slow DNS lookup followed by a fast DNS lookup. Fixes #8602. LGTM=bradfitz R=bradfitz, mikioh.mikioh CC=golang-codereviews, r, rsc https://golang.org/cl/154610044
-
- 08 Sep, 2014 1 commit
-
-
Russ Cox authored
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
-
- 31 Aug, 2013 2 commits
-
-
Mikio Hara authored
Also flattens import declaration. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/13373046
-
Mikio Hara authored
This CL makes resolveInternetAddr return a list of addresses that contain a pair of different address family IP addresses if possible, but doesn't contain any API behavioral changes yet. A simple IP address selection mechanism for Resolve{TCP,UDP,IP}Addr and Dial API still prefers IPv4. This is in preparation for TCP connection setup with fast failover on dual IP stack node as described in RFC 6555. Update #3610 Update #5267 R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13374043
-
- 22 Aug, 2013 1 commit
-
-
Mikio Hara authored
This CL adds minimal information for supporting platforms that don't have a complete list of internet protocol numbers. Fixes #5344. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12898045
-
- 14 Jun, 2013 1 commit
-
-
Brad Fitzpatrick authored
In Issue 5625, Russ says: "We should at least have a cache of inflight lookups, so that 100 simultaneous dials of one host name don't do the work 100x. That's easy and (assume we forget the answer once they all get it) doesn't pose any consistency problems. It just merges simultaneous work." This brings in singleflight (unexported) from Google / Camlistore, but without its tests. Maybe we should put it somewhere in the standard library. But not now. Update #5625 R=golang-dev, iant, cespare, rsc, dave, rogpeppe, remyoudompheng CC=golang-dev https://golang.org/cl/10079043
-
- 08 Nov, 2012 1 commit
-
-
Brad Fitzpatrick authored
Integrates with the pollserver now. Uses the old implementation on windows and plan9. Fixes #2631 R=paul, iant, adg, bendaglish, rsc CC=golang-dev https://golang.org/cl/6815049
-
- 18 Oct, 2012 1 commit
-
-
Stephen McQuay authored
Fixes #4224. R=golang-dev, dave, minux.ma, mikioh.mikioh, alex.brainman, rsc, herbert.fischer CC=golang-dev https://golang.org/cl/6675043
-
- 10 Sep, 2012 1 commit
-
-
Mikio Hara authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6489056
-
- 17 Jan, 2012 1 commit
-
-
Alex Brainman authored
Mostly copied comments from unix files. R=rsc CC=golang-dev https://golang.org/cl/5533057
-