From bcd3385ed6fb4e9ea3b25798a542427486972967 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 4 Dec 2018 19:31:52 +0000 Subject: [PATCH] doc/go1.12: flesh out net, etc Change-Id: I081400286544d88eec83a8b332b9f7934fd76ae2 Reviewed-on: https://go-review.googlesource.com/c/152539 Reviewed-by: Ian Lance Taylor --- doc/go1.12.html | 58 +++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index a26a0eac60..9908829d44 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -211,14 +211,6 @@ for { -
crypto/tls, net/http
-
-

- TODO: https://golang.org/cl/143177: reject HTTP requests to HTTPS server -

- -
-
database/sql

@@ -337,32 +329,54 @@ for {

net
-

- TODO: https://golang.org/cl/113997: use splice(2) on Linux when reading from UnixConn, rework splice tests -

-

- TODO: https://golang.org/cl/146659: enable RFC 6555 Fast Fallback by default + The + Dialer.DualStack setting is now ignored and deprecated; + RFC 6555 Fast Fallback ("Happy Eyeballs") is now enabled by default. To disable, set + Dialer.FallbackDelay to a negative value.

- TODO: https://golang.org/cl/107196: enable TCP keepalives by default + Similarly, TCP keep-alives are now enabled by default if + Dialer.KeepAlive is zero. + To disable, set it to a negative value.

+

+ On Linux, the splice system call is now used when copying from a + UnixConn to a + TCPConn. +

net/http
+

+ The HTTP server now rejects misdirected HTTP requests to HTTPS servers with a plaintext "400 Bad Request" response. +

+

- TODO: https://golang.org/cl/130115: add Client.CloseIdleConnections + The new Client.CloseIdleConnections + method calls the Client's underlying Transport's CloseIdleConnections + if it has one.

- TODO: https://golang.org/cl/145398: in Transport, don't error on non-chunked response with Trailer header + The Transport no longer rejects HTTP responses which declare + HTTP Trailers but don't use chunked encoding. Instead, the declared trailers are now just ignored.

-

- TODO: https://golang.org/cl/152080: update bundled x/net/http2 +

+ The Transport no longer handles MAX_CONCURRENT_STREAMS values + advertised from HTTP/2 servers as strictly as it did during Go 1.10 and Go 1.11. The default behavior is now back + to how it was in Go 1.9: each connection to a server can have up to MAX_CONCURRENT_STREAMS requests + active and then new TCP connections are created as needed. In Go 1.10 and Go 1.11 the http2 package + would block and wait for requests to finish instead of creating new connections. + To get the stricter behavior back, import the + golang.org/x/net/http2 package + directly and set + Transport.StrictMaxConcurrentStreams to + true.

@@ -370,7 +384,8 @@ for {
net/http/httputil

- TODO: https://golang.org/cl/146437: make ReverseProxy automatically proxy WebSocket requests + The ReverseProxy now automatically + proxies WebSocket requests.

@@ -378,7 +393,8 @@ for {
os

- TODO: https://golang.org/cl/125443: add ExitCode method to ProcessState + The new ProcessState.ExitCode method + returns the process's exit code.

@@ -442,7 +458,7 @@ for {

strings

- TODO: https://golang.org/cl/122835: add Builder.Cap + The new Builder.Cap method returns the capacity of the builder's underlying byte slice.

-- 2.50.0