Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential p2p shutdown hangup (#10626)
This is a fix for: #10192 This fixes is a deadlock in v4_udp.go where * Thread A waits on mutex.Lock() in resetTimeout() called after reading listUpdate channel. * Thread B waits on listUpdate <- plist.PushBack(p) called after locking mutex.Lock() This fix decouples the list operations which need locking from the channel operations which don't by storing the changes in local variables. These updates are used for resetting a timeout - which is not order dependent.
- Loading branch information