-
-
Notifications
You must be signed in to change notification settings - Fork 305
A client disconnects from the server, another client got disconnected. #264
Comments
More info I found from testing: How I've tested this issue:
|
I ran into this issue as well (using latest develop branch) with one server and multiple clients running on the same machine. Force disconnect (run on application quit) seems to be causing this. Will double check whether it affects clients on different machines. On a different project with a develop branch from before April 2019 I have not seen the issue and multiple client worked fine on the same machine. |
Investigating this further, the code on the develop branch waits for a timeout on the player disconnecting when the app is closed while the master branch code immediatelly disconnects. Both examples using the CubeForge example. |
Also if I use the pre refactor code/master branch for the client and the latest develop for the server then disconnections work as expected even for multiple clients on the same machine. Doing it the other way around where server is the pre refactor code and the client is the latest develop then the issue is reproducible again. This seems to suggest that the issue is with the refactored UDPClient code? 🤔 |
So to summarise what I am experiencing with latest develop branch (issue seems to be slightly different from the original issue above): If with multiple clients on the same machine connected to the server on the same machine. One client disconnects (eg.: close application which will call If I debug step through the |
Looks like this commit (f5fbbb8) breaks the client disconnection. The commit before it works (after the two minor fixes of removing an #endif and adding a missing #region) |
Should we just add a little wait in there to allow the message to be sent? Like when stepping through the disconnect code it is slower? Or maybe a wait on the ack on the disconnect message? |
Version Number and Operating System(s):
don't know the version but latest upstream/develop merged.
Windows 10 64bit
Expected behavior:
when a specific client disconnects from the server, that client should be disconnected, not another.
Actual behavior:
when client A disconnects from the server, client B got disconnected from the server. (messed up)
Steps to reproduce:
https://github.com/PyeonggukLee/ForgeNetworkingRemastered/tree/disconnect-issue
Here is my forked branch for the issue.
[Optional] Discord Username:
PyeNog
The text was updated successfully, but these errors were encountered: