Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addrmgr: make KnownAddress methods thread-safe #1763

Merged
merged 1 commit into from Oct 26, 2021

Commits on Oct 20, 2021

  1. addrmgr: make KnownAddress methods thread-safe

    This gives KnownAddress a sync.RWMutex so the exported methods may
    safely access the na (*wire.NetAddress) and lastattempt fields.
    The AddrManager is updated to lock the new KnownAddress mutex before
    assigning to na or lastattempt.
    The other KnownAddress fields are only accessed by AddrManager, using
    its own Mutex for synchronization.
    chappjc committed Oct 20, 2021
    Copy the full SHA
    67e82a6 View commit details
    Browse the repository at this point in the history