FAQ

On Wednesday, December 10, 2014 8:49:59 AM UTC-5, Dave Cheney wrote:
Yes, and if you don't resp.Body.Close() will do it for you.

I'm fairly certain that's not true, otherwise closing an unneeded response
could read from the connection indefinitely.

I think it does get read implicitly if it fits entirely in the read buffer,
but there's no guarantee. Reading it all will ensure that the transport
attempts to reuse the connection.

--
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 | 3 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