Giter Site home page Giter Site logo

Comments (4)

RyanTT avatar RyanTT commented on May 24, 2024 1

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.

RyanTT avatar RyanTT commented on May 24, 2024 1

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.

PhilPhonic avatar PhilPhonic commented on May 24, 2024

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.

PhilPhonic avatar PhilPhonic commented on May 24, 2024

This version works. I'm not seeing those disconnects anymore. Thanks.

from bytexdigital.battleye.rcon.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.