mirror of
https://github.com/golang/go
synced 2024-11-26 19:41:19 -07:00
doc: add go1.3 note about the http Transport closing Request.Body
LGTM=rsc R=rsc, r CC=golang-codereviews https://golang.org/cl/87620043
This commit is contained in:
parent
8fc6ed4c89
commit
071a0f4d18
@ -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.
|
has a <code>KeepAlive</code> option to specify a keep-alive period for the connection.
|
||||||
</li>
|
</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> TODO: net: enable fast socket creation using SOCK_CLOEXEC and Accept4 on FreeBSD 10 (69100043)</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
Loading…
Reference in New Issue
Block a user