Descriptionnet: coalesce duplicate in-flight DNS lookups
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 issue 5625
Patch Set 1 #Patch Set 2 : diff -r ca145611fa96 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r ca145611fa96 https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 4 : diff -r 330478300ab0 https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 5 : diff -r 52d53d0e177e https://go.googlecode.com/hg/ #MessagesTotal messages: 15
|