Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(simple-game-server-go): Guard against panic in ReadFromUDP() #23

Merged
merged 3 commits into from
Aug 12, 2022

Conversation

nweedon-u
Copy link
Collaborator

A race condition can occur rarely where the UDP connection used for handling query responses is used when it is nil. Refactor reading and writing into Read() and Write() methods which also guard against use when the connection has been closed.

A race condition can occur rarely where the UDP connection used for handling query responses is used when it is nil. Refactor reading and writing into `Read()` and `Write()` methods which also guard against use when the connection has been closed.
@nweedon-u nweedon-u requested a review from a team as a code owner August 12, 2022 08:21
@nweedon-u nweedon-u merged commit 14f4efa into main Aug 12, 2022
@nweedon-u nweedon-u deleted the fix/panic-in-read-udp branch August 12, 2022 09:27
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.

3 participants