Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(vpn): send ping results over tunnel#18200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 13 commits intomainfromethan/send-ping-results
Jun 6, 2025
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
remove wg
  • Loading branch information
@ethanndickson
ethanndickson committedJun 4, 2025
commita472f5656e3c7a8500aa215dac08a76e68f859c9
6 changes: 1 addition & 5 deletionsvpn/tunnel.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -607,7 +607,7 @@ func (u *updater) netStatusLoop() {
case <-u.ctx.Done():
return
case <-ticker.C:
gou.recordLatency()
u.recordLatency()
u.sendAgentUpdate()
}
}
Expand All@@ -623,11 +623,8 @@ func (u *updater) recordLatency() {

pingCtx, cancelFunc := context.WithTimeout(u.ctx, 5*time.Second)
defer cancelFunc()
var wg sync.WaitGroup
for _, agentID := range agentsIDsToPing {
wg.Add(1)
go func() {
defer wg.Done()
pingDur, didP2p, pingResult, err := u.conn.Ping(pingCtx, agentID)
if err != nil {
u.logger.Warn(u.ctx, "failed to ping agent", slog.F("agent_id", agentID), slog.Error(err))
Expand DownExpand Up@@ -658,7 +655,6 @@ func (u *updater) recordLatency() {
}
}()
}
wg.Wait()
}

// processSnapshotUpdate handles the logic when a full state update is received.
Expand Down
Loading

[8]ページ先頭

©2009-2026 Movatter.jp