-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version
)?
go version go1.7 linux/amd64 - What operating system and processor architecture are you using (
go env
)?
go version go1.7 linux/amd64 - What did you do?
Start a HTTPS server with ListenAndServeTLS - What did you expect to see?
Handling a lot of short connections - What did you see instead?
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)