FAQ
After some digging into stdlib code,
http://golang.org/src/pkg/net/http/transport.go?h=bodyEOFSignal#L1112 and
http://golang.org/src/pkg/net/http/transport.go?h=bodyEOFSignal#L841
suggest the connection will be closed if body is not read till end.

Am I reading it wrong?

--
Chandra Sekar.S
On Wed, Dec 10, 2014 at 7:19 PM, Dave Cheney wrote:

Yes, and if you don't resp.Body.Close() will do it for you.

--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 10, '14 at 1:46p
activeAug 24, '15 at 6:41p
posts11
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase