Comments (4)
Internally the client sends a heartbeat to the server every 3 seconds. The sequence counter will go up to 255, as one byte is reserved for each message's id. 255 * 3 is almost 13 minutes. My assumption is that the sequence counter resetting back to 0 after 255 is making the connection drop. However, the RCon protocol does not seem to indicate that the server will disconnect the client because of that. I'll need to investigate a bit.
from bytexdigital.battleye.rcon.
I believe I have fixed the issue.
The problem was that a code path did not remove messages from the local collection awaiting a response. This caused the very first package with sequence number 0 (and all other packages) to be hold onto, causing there to be two packages with ID 0 eventually. Then the code would accidentally mark the old 0er package as acknowledged instead of the new one.
Please try this version
from bytexdigital.battleye.rcon.
Internally the client sends a heartbeat to the server every 3 seconds. The sequence counter will go up to 255, as one byte is reserved for each message's id. 255 * 3 is almost 13 minutes. My assumption is that the sequence counter resetting back to 0 after 255 is making the connection drop. However, the RCon protocol does not seem to indicate that the server will disconnect the client because of that. I'll need to investigate a bit.
I had the same suspicion, but it made no sense to me, cause the sequence counter resetting to 0 after reaching 255 is the way to go, as stated in the BattlEye RCon Protocol Specs.
Thanks for looking into it.
This is no blocker, btw. The application works just fine since the reconnect works like a charm ;-)
from bytexdigital.battleye.rcon.
This version works. I'm not seeing those disconnects anymore. Thanks.
from bytexdigital.battleye.rcon.
Related Issues (10)
- Help a noob HOT 15
- How to define kick reason? HOT 5
- A onlinePlayers BUG? HOT 12
- [DayZ] one instance connecting multiple times? HOT 12
- GetMissionsRequest doese not realized HOT 7
- Cyrillic support HOT 9
- SocketException HOT 4
- GetPlayersRequest always return an empty list HOT 10
- Connection interruption due to wrong sequence number HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytexdigital.battleye.rcon.