From 7a6b820b920adb96fa1cee1d0c6151fe21dc0a6c Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 20 Feb 2025 01:27:22 +0900 Subject: [PATCH] added some todo text --- server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.go b/server.go index 90cb41a..4264b3e 100644 --- a/server.go +++ b/server.go @@ -751,6 +751,11 @@ func (cts *ServerConn) receive_from_stream(wg *sync.WaitGroup) { x, ok = pkt.U.(*Packet_Conn) if ok { cts.Token = x.Conn.Token + // TODO: lock + // manipulate the cts_map_by_token + // if cts.Token is empty, not placed in the table... + // removal by old token value before adding it. + // unlock } else { cts.S.log.Write(cts.Sid, LOG_ERROR, "Invalid conn_desc event from %s", cts.RemoteAddr) }