Skip to content

gameでClient.hmacのraceを回避するためpeerそれぞれがhash.Hashを持つように#97

Merged
makiuchi-d merged 1 commit intomainfrom
fix-client-hmac-race
May 7, 2026
Merged

gameでClient.hmacのraceを回避するためpeerそれぞれがhash.Hashを持つように#97
makiuchi-d merged 1 commit intomainfrom
fix-client-hmac-race

Conversation

@makiuchi-d
Copy link
Copy Markdown
Member

peer毎にMsgLoopが回っているので、再接続時に古いPeerのMsgLoopがまだ生きている場合にhmacの計算が衝突することがありました。
peerごとにhmacオブジェクトを持つように修正しました。

@makiuchi-d makiuchi-d merged commit 3d15319 into main May 7, 2026
4 checks passed
@makiuchi-d makiuchi-d deleted the fix-client-hmac-race branch May 7, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants