On 2017-04-18 17:08, Ken Simon wrote:

Yes that's very strange.  My impression was that net.Listener.Close()
would actually sever the running connections...

It won't.
That's why Go 1.8 has Server.Close()

and even if one was
still open, I'm making a new http.Client object, too!

Yes. But you don't make a new Transport.
Both your clients use DefaultTransport - which has the connection pool.

/Peter

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