Open ConnorBP opened 10 months ago
Update: upon further testing it seems it might be a client side issue. I tried installing the matchbox server on a vps without rebooting and the same issue happened. I will now try and reboot and see if it starts working again. My current theories are maybe websocket port handles are not being released and the browser runs out of ports to give for web sockets, or some variable relating to time from the browser or client code is overflowing and breaking the handshake.
@ConnorBP update? Logic issue or matchbox issue?
@ConnorBP update? Logic issue or matchbox issue?
I have not been able to find the source of this yet. It pops up unexpectedly when trying to connect peers on only certain subnets or external networks. I suspect something along the network is breaking the connection and matchbox or ggrs is not handling it correctly and just gets stuck waiting for the NewPeer event.
Very odd bug. Was tripping me out the other day and would definitely get in the way of running a server. I don't know the exact cause but when you leave the server on for a day the matchbox server stops pairing.
as shown in the logs above the peers get connected but then on your clients it still says no one is paired with you in your lobby. The weirdest part is that when you restart the server program, it does not resolve itself. Only a full system reboot solves the issue. I imagine this must mean it has something to do with some kind of system time variable overflowing or something?
Ran into this issue mid extreme violence tutorial and it caused me to go backtrack so much to find the issue only to then reboot for a windows update and suddenly it works again. Same issue popped up today after I left my laptop to sleep overnight. I will try and look in the server code to see what might be the cause let me know if anyone else finds out. On a similar note, none of the games embedded in the tutorial work anymore maybe that's related to this.
EDIT: I should mention this issue is on both the latest release and current main branch commit fe95d914be691e3e3fe6e982c558622b9d134ff6
Also it looks like internally the server makes a pair, but then for whatever reason the clients are never notified of this pairing.