Go to file
Colleen Murphy c7dd355394 Skip closing an initializing connection
Without this change, if a cert is updated (e.g. to add CNs) while the
listener is in the middle of Accept()ing a new connection, the
connection gets dropped, we'll see a message like this in the server
logs:

  http: TLS handshake error from 127.0.0.1:51232: write tcp 127.0.7.1:8443->127.0.0.1:51232: use of closed network connection

and the client (like a browser) won't necessarily reconnect. This change
modifies the GetCertificate routine in the listener's tls.Config to
keep track of the state of the incoming connections and only close
connections that have completed GetCertificate and therefore are
finished with their TLS handshake, so that only old established
connections are closed.
2021-10-25 13:17:24 -07:00
cert Allow forcing cert reissuance (#28) 2020-08-10 17:12:39 -07:00
factory Avoid panic when secret is nil 2021-06-15 22:42:42 -07:00
server Pass context to http server as BaseContext 2021-06-15 22:42:42 -07:00
storage Merge TLS only if TLS factory is set 2021-07-12 18:25:01 +08:00
filter.go Add filter helper method 2020-11-09 21:52:17 -07:00
go.mod Update to wrangler v0.8.0 and merge v0.2.x to master 2021-04-12 15:09:30 -07:00
go.sum Update to wrangler v0.8.0 and merge v0.2.x to master 2021-04-12 15:09:30 -07:00
LICENSE Initial Commit 2019-05-09 12:36:03 -07:00
listener.go Skip closing an initializing connection 2021-10-25 13:17:24 -07:00
redirect.go Fix acme listener 2020-02-07 14:20:45 -07:00
tcp.go Refactor to not include a server by default 2019-10-30 19:14:34 -07:00