On Sat, Nov 19, 2016 at 11:33 AM, Vasily Korytov <vkory...@4tifier.com>
wrote:

> It stays there for days, so I'm not sure. And the client is supposed to be
> created and destroyed in a function that terminates, so I'm really
> surprised by that.
>
>
The connection can stay there for as long as the server and client want it
to. SSL handshakes are expensive, and normally you try to avoid them when
possible.

The client doesn't maintain the connection, the Transport does, and you're
using the DefaultTransport. I'm not sure why http.Get would work
differently, since it's just calling DefaultClient.Get.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to