You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
stomir
changed the title
net/http
net/http: tls with large number of connections
Aug 25, 2016
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?
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.
So this was probably some already resolved problem with handling cryptography in only one thread.
Sorry for wasting your time.
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: