From cd29fde178e554c190585d19fa3d12e18980601e Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 29 Jun 2019 19:32:15 -0500 Subject: [PATCH] temporary workaround to concurrency bug in sessions.getSharedKey --- src/yggdrasil/session.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yggdrasil/session.go b/src/yggdrasil/session.go index 4cc059e6..53836c38 100644 --- a/src/yggdrasil/session.go +++ b/src/yggdrasil/session.go @@ -298,6 +298,8 @@ func (ss *sessions) getPing(sinfo *sessionInfo) sessionPing { // This comes up with dht req/res and session ping/pong traffic. func (ss *sessions) getSharedKey(myPriv *crypto.BoxPrivKey, theirPub *crypto.BoxPubKey) *crypto.BoxSharedKey { + return crypto.GetSharedKey(myPriv, theirPub) + // FIXME concurrency issues with the below, so for now we just burn the CPU every time if skey, isIn := ss.permShared[*theirPub]; isIn { return skey }