net/http: tls with large number of connections #16878
Closed
Labels
Comments
I'm afraid we need more information. Can you write a simple benchmark that demonstrates the problem and show how much faster it gets with the change you propose? |
ok, this is pretty embarrassing When I was working on the problem, at some point I was forced to update go version on the machine I was working on, and that was what actually helped me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.7 linux/amd64
go env
)?go version go1.7 linux/amd64
Start a HTTPS server with ListenAndServeTLS
Handling a lot of short connections
Not handling a lot of short connections
So basically, the TLS handler is bad at handling large number of short connections,
and works a lot better when I removed the "tcpKeepAliveListener" from this line:
tlsListener := tls.NewListener(tcpKeepAliveListener{ln.(*net.TCPListener)}, config)
(I disabled KeepAlives with SetKeepAlivesEnabled anyway)
The text was updated successfully, but these errors were encountered: