]> Cypherpunks repositories - gostls13.git/commit
net: use contexts for cgo-based DNS resolution
authorScott Bell <scott@sctsm.com>
Mon, 9 May 2016 01:17:59 +0000 (18:17 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 May 2016 15:55:48 +0000 (15:55 +0000)
commit636670b8db9b72c80ec89da0a666be0d686269fd
treea8a055a544e3391b6455f27a08b9231783d90ae7
parent9edb27e76f297c034e9383ad2d1bf48b23e1a25b
net: use contexts for cgo-based DNS resolution

Although calls to getaddrinfo can't be portably interrupted,
we still benefit from more granular resource management by
pushing the context downwards.

Fixes #15321

Change-Id: I5506195fc6493080410e3d46aaa3fe02018a24fe
Reviewed-on: https://go-review.googlesource.com/22961
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/cgo_stub.go
src/net/cgo_unix.go
src/net/cgo_unix_test.go
src/net/lookup_unix.go
src/net/netgo_unix_test.go