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

Randomly lost connection in v1.2.0 #166

Closed
dazre opened this issue Nov 15, 2019 · 4 comments
Closed

Randomly lost connection in v1.2.0 #166

dazre opened this issue Nov 15, 2019 · 4 comments

Comments

@dazre
Copy link

dazre commented Nov 15, 2019

Hi,

Month ago we switch to 4.23 UE version with 1.2.0 version of plug-in (we use github version of engine) and found that persistent connections randomly lost. Plug-in uses in dedication engine server to connect with our backend servers. Simultaneously we starts about 10 dedicated servers and half of them work well meantime another half of servers works but did not receive any messages from backend.

Before we switched to 4.23 we use 4.20 and 0.9.3 for plugin and our servers held working connections months.

Another problem is that we have not any errors or crashes so we could not provide any logs or something else.

@getnamo
Copy link
Owner

getnamo commented Nov 16, 2019

v1.0.0+ uses a new boost-less third party lib. It's possible during certain conditions that it may lose a connection I suppose, what kind of data sizes/frequency are we talking about? There must be a way to reliably trigger this disconnect. Might be related to #126 fix

@dazre
Copy link
Author

dazre commented Nov 18, 2019

We are talking about 2.5 KBps in 20-30 bidirectional messages. But we found that connection lost in idle time.

I built 0.9.3 plug-in version for 4.23 engine and got the same issue. Then a game start using socket connection immediately after start it works fine. But if the game didn't use connection immediately after start - game is waiting for command from upstream - after unknown amount of time connection become unusable. Neither UE4.23 server no upstream server didn't get any errors or disconnect events but no one message sent from one didn't receive by another.

@dazre
Copy link
Author

dazre commented Nov 20, 2019

After couple of days testing we found "solution" is that usage ping message with ack. Sending ping every 15 sec helps to keep connection alive. May be it became useful because internal socket ping does not work appropriate?

@getnamo
Copy link
Owner

getnamo commented Apr 7, 2022

Closing due to age, re-open if problem persists in new plugin versions.

@getnamo getnamo closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants