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

KCP: Client disconnects if ServerChangeScene takes a lot of time #2480

Closed
ghost opened this issue Nov 30, 2020 · 5 comments
Closed

KCP: Client disconnects if ServerChangeScene takes a lot of time #2480

ghost opened this issue Nov 30, 2020 · 5 comments
Assignees

Comments

@ghost
Copy link

ghost commented Nov 30, 2020

Hi
During ServerChangeScene, server stops to receive any messages.
It is also affect for ping\pong messages.

Is scene is big enough it could take more than 10 seconds to load and all clients
with KCP transport disconnect because of checking this timeout.

@MrGadget1024 MrGadget1024 changed the title Client disconnects if ServerChangeScene takes a lot of time KCP: Client disconnects if ServerChangeScene takes a lot of time Dec 2, 2020
@ghost
Copy link
Author

ghost commented Dec 3, 2020

The behavior could be easily emulated by adding following code
System.Threading.Thread.Sleep(15000);
at the beginning of FinishLoadScene method of NetworkManager.

@miwarnec
Copy link
Collaborator

miwarnec commented Dec 4, 2020

hey guys. please post kcp issues on kcp repo so they don’t get lost :)
github.com/vis2k/kcp2k

@ghost
Copy link
Author

ghost commented Dec 4, 2020

done
[https://github.com/MirrorNetworking/kcp2k/issues/8]

miwarnec pushed a commit that referenced this issue Jan 12, 2021
@ghost
Copy link
Author

ghost commented Feb 10, 2021

Not fixed what I had ment
#8 has been updated with log

@MrGadget1024
Copy link
Collaborator

closing this in favor of MirrorNetworking/kcp2k#8

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