Improve error handling in processPathRequest by logging failures during local destination announcement and path request sending
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 4s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 5s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 4s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 1m18s
Run Gosec / tests (push) Successful in 1m33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 2s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 2s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 3s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 34s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m19s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 4s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 5s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 4s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 1m18s
Run Gosec / tests (push) Successful in 1m33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 2s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 2s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 3s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 34s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m19s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
This commit is contained in:
@@ -1327,7 +1327,9 @@ func (t *Transport) processPathRequest(destHash []byte, attachedIface common.Net
|
||||
if isLocal {
|
||||
if dest, ok := localDest.(*destination.Destination); ok {
|
||||
debug.Log(debug.DEBUG_INFO, "Answering path request for local destination", "dest_hash", fmt.Sprintf("%x", destHash))
|
||||
dest.Announce(true, tag, attachedIface)
|
||||
if err := dest.Announce(true, tag, attachedIface); err != nil {
|
||||
debug.Log(debug.DEBUG_ERROR, "Failed to announce local destination for path request", "error", err)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -1402,7 +1404,9 @@ func (t *Transport) processPathRequest(destHash []byte, attachedIface common.Net
|
||||
TTL: 15,
|
||||
Recursive: true,
|
||||
}
|
||||
t.sendPathRequest(req, name)
|
||||
if err := t.sendPathRequest(req, name); err != nil {
|
||||
debug.Log(debug.DEBUG_INFO, "Failed to send path request", "interface", name, "error", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user