]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add go1.3 note about the http Transport closing Request.Body
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 14 Apr 2014 17:19:10 +0000 (10:19 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 14 Apr 2014 17:19:10 +0000 (10:19 -0700)
LGTM=rsc
R=rsc, r
CC=golang-codereviews
https://golang.org/cl/87620043

doc/go1.3.html

index 07e695124de51eac47fd02c81efbe099638986da..c628763ad5ea5d68172e9ba779d37825d65e18c4 100644 (file)
@@ -350,6 +350,14 @@ the <a href="/pkg/net/#Dialer"><code>Dialer</code></a> struct now
 has a <code>KeepAlive</code> option to specify a keep-alive period for the connection.
 </li>
 
+<li>
+The <a href="/pkg/net/http/"><code>net/http</code></a> package's 
+<a href="/pkg/net/http/#Transport"><code>Transport</code></a>
+now closes <a href="/pkg/net/http/#Request"><code>Request.Body</code></a>
+consistently, even on errors. Previously it was closed on success and
+closed on some errors, sometimes depending on timing.
+</li>
+
 <li> TODO: net: enable fast socket creation using SOCK_CLOEXEC and Accept4 on FreeBSD 10 (69100043)</li>
 
 <li>