From: Russ Cox Date: Mon, 10 Dec 2012 23:08:07 +0000 (-0500) Subject: doc/go1.1.html: add warning about net.ResolveTCPAddr error checking X-Git-Tag: go1.1rc2~1678 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=014137c839a3b9c5b9a2f44df8c8598e2569a311;p=gostls13.git doc/go1.1.html: add warning about net.ResolveTCPAddr error checking Suggested by Paul Borman. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/6930043 --- diff --git a/doc/go1.1.html b/doc/go1.1.html index c70be57fad..3e07926f29 100644 --- a/doc/go1.1.html +++ b/doc/go1.1.html @@ -72,6 +72,19 @@ calls the debug/elf functions Symbols or ImportedSymbols may need to be adjusted to account for the additional symbol and the change in symbol offsets.

+

net

+ +

+The protocol-specific resolvers were formerly +lax about the network name passed in. For example, although the documentation was clear +that the only valid networks for ResolveTCPAddr are "tcp", +"tcp4", and "tcp6", the Go 1.0 implementation silently accepted +any string. The Go 1.1 implementation returns an error if the network is not one of those strings. +The same is true of the other protocol-specific resolvers ResolveIPAddr, ResolveUDPAddr, and +ResolveUnixAddr. +

+ +

time

On Linux, previous versions of the time package returned times with