Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit 2d22c80

Browse files
authored
Merge pull request #162 from cloudflare/issue-161
reset config runtime state during repair
2 parents c814dd1 + 7088167 commit 2d22c80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/argotunnel/tunnel.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ func repairFunc(l *syncTunnelLink) func() {
402402

403403
close(ll.stopCh)
404404
ll.config.ClientID = utilrand.String(32)
405+
// reset config runtime state during repair.
406+
ll.config.IncidentLookup = origin.NewIncidentLookup()
407+
ll.config.CloseConnOnce = &sync.Once{}
405408
ll.stopCh = make(chan struct{})
406409
ll.repiars++
407410
go launchFunc(ll)()

0 commit comments

Comments
 (0)