Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: eliminate possibly deadlock, peerConnected now async
This commit eliminates a possible deadlock (or repeated peer connection failures) that can arise due to the [inbound|outbound]PeerConnected methods holding the peer mutex too long. We now alleviate this concurrency issue by calling s.peerConnected in an asynchronous manner. This is safe as all operations within the method are themselves goroutine-safe.
- Loading branch information