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

query: allow multiple session IDs per connection #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

katrinafyi
Copy link

@katrinafyi katrinafyi commented Jul 21, 2024

changes the sessions map to be keyed by socket address (stringified hostname+port) instead of session ID.

note: using net.Addr directly as a map key doesn't work since new, non-equal, net.Addr instances are created on each ReadFrom(). i don't know enough Go to know if this can be worked around.

fixes #1

edit: this can be tested with https://pypi.org/project/mcstatus/

changes sessions map to be keyed by socket address instead
of session ID.

note: using net.Addr as map key doesn't work since new, non-equal,
net.Addr instances are created on each ReadFrom().
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.

query: should support multiple session IDs within one connection
1 participant