]> Cypherpunks repositories - gostls13.git/commit
net: respect go vs cgo resolver selection in all lookup routines
authorRuss Cox <rsc@golang.org>
Wed, 19 Aug 2015 02:50:12 +0000 (22:50 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 19 Aug 2015 04:20:37 +0000 (04:20 +0000)
commit773b9b8452cfc498ef1aa0e0bbc456a56fd4fb0e
tree8d5e20c25e3665e1fd3aba120f01e5b46f150d17
parent18d27b2d754923854e05c3b37a2b799d9c063164
net: respect go vs cgo resolver selection in all lookup routines

This is especially important for LookupAddr, which used to be pure Go
(lightweight, one goroutine per call) and without this CL is now
unconditionally cgo (heavy, one thread per call).

Fixes #12190.

Change-Id: I43436a942bc1838b024225893e156f280a1e80cf
Reviewed-on: https://go-review.googlesource.com/13698
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/conf.go
src/net/lookup_unix.go