Skip to content

Commit

Permalink
add log on handshake timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Sep 5, 2024
1 parent 91a8fb2 commit 971c2de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func (sync *Syncer) Feed() (recs protocol.Records, err error) {

select {
case <-time.After(sync.PingWait):
sync.log.Error("handshake took too long", "name", sync.Name)
sync.SetFeedState(SendEOF)
return
case <-sync.WaitDrainState(SendDiff):
Expand Down

0 comments on commit 971c2de

Please sign in to comment.