mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-06-26 22:56:53 +00:00
Don't reset connections on the first load of the certs
This commit is contained in:
parent
9dfd7df057
commit
db883ae66a
@ -369,8 +369,8 @@ func (l *listener) loadCert() (*tls.Certificate, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// cert has changed, close closeWrapper wrapped connections
|
||||
if l.conns != nil {
|
||||
// cert has changed, close closeWrapper wrapped connections if this isn't the first load
|
||||
if l.conns != nil && l.cert == nil {
|
||||
l.connLock.Lock()
|
||||
for _, conn := range l.conns {
|
||||
_ = conn.close()
|
||||
|
Loading…
Reference in New Issue
Block a user