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

Race Condition? / Round Robin? / Seemingly Random Routing #32

Open
AugusDogus opened this issue Dec 6, 2021 · 2 comments
Open

Race Condition? / Round Robin? / Seemingly Random Routing #32

AugusDogus opened this issue Dec 6, 2021 · 2 comments

Comments

@AugusDogus
Copy link

AugusDogus commented Dec 6, 2021

Connecting to the servers works as intended, however when adding each server to the server list on the multiplayer tab I've found that they share a motd and player count.

I previously thought that connecting to the servers worked as intended and that the motd/playercount was using a different protocol for fetching that information and that's why it was failing, but on further inspection it appears that whichever motd/playercount is displayed is the server the client will connect to, regardless of subdomain/host.

This looks a lot like a race condition. Maybe I've improperly configured my mc-router container?

docker run -d --name minecraft-router -p 0.0.0.0:25565:25565/tcp --network=cloudbox itzg/mc-router --mapping=mc.example1.com=minecraft:25565,mc.example2.gg=minecraft-test:25565

Where example1.com and example2.com are different TLDs.

By the logs it looks like it's working, but ¯\(ツ)

image

Refreshing the list will often leave one server with a motd and the other will timeout

image

On a second refresh the motd and player count display properly, but the server-icon.png displays as a black image still.

image

Then all subsequent refreshes will sometimes be correct and sometimes show the same errors as above.

@AugusDogus
Copy link
Author

After connecting to the top server, the server-icon displays slightly, albeit with other issues.

image

@AugusDogus AugusDogus changed the title MOTD / Serverlist confusion Race Condition? / Round Robin? / Seemingly Random Routing Dec 6, 2021
@itzg
Copy link
Owner

itzg commented Dec 6, 2021

Unlike bungee, etc mc-router routes only at the packet layer only for the handshake and backend resolution. After that it streams the connection without any awareness nor influence on thing s like MOTD. If the logs looks right, then that's what it's routing.

I know that doesn't help your immediate issue, but I'm not sure more the router can do.

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

No branches or pull requests

2 participants