Skip to content

net/http: tls with large number of connections #16878

@stomir

Description

@stomir

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.7 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    go version go1.7 linux/amd64
  3. What did you do?
    Start a HTTPS server with ListenAndServeTLS
  4. What did you expect to see?
    Handling a lot of short connections
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions