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

server does not disconnect player if that player has dropped connection or quit the game. also some reliable messages got dropped and does not receive some times. #104

Open
BijianWu opened this issue Feb 7, 2021 · 2 comments
Labels
Bug Something isn't working

Comments

@BijianWu
Copy link

BijianWu commented Feb 7, 2021

Description and Explanation

Sometimes when the client disconnects, the server does not know about it! no Disconnect callback got triggered on the server.
Sometimes when the Server or Client sends a message to each other, sometimes it does not receive on their end. this does not receive message issue is happening often during starting the game with low network traffic, which just bunch of handsake message and login message. etc.

For Issues

(Unity based server, Unity version 2019.2.4f1, Dark rift version is 2.7.0.0 free version, hosted in PlayFab. it happens sometimes when game server is hosted, client is playing the game in Andrroid Phone, tested with lots of different Android Phones)

@JamJar00
Copy link
Member

Correct me if I'm wrong here, we narrowed down the missing messages to NoDelay being set to false on the listener, meaning small reliable mesasges weren't being sent from the TCP socket (they were waiting for more data).

So the only issue here is that disconnections are not always being detected correct?

Do you have some form of constant, reliable traffic between client/server? TCP sockets only report disconnections (and hence DR only sees the disconnection) if 1. the Disconnect method is explicitly called, 2. a message is sent and not acknowledged by the remote. Therefore conenctions failures will onyl be detected when you send messages.

@JamJar00 JamJar00 added Bug Something isn't working Question Further information is requested labels Feb 21, 2021
@BijianWu
Copy link
Author

Yeah, that was solved.
I do have client sending input to server every 30 sec, You know when I am calling ConnectInBackground in client side and pass in noDelay = true, does it have the same effect as server set noDelay to true

@JamJar00 JamJar00 removed the Question Further information is requested label Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants