Add advanced compression protocol negotiation and smart replay#31
Add advanced compression protocol negotiation and smart replay#31
Conversation
This commit implements the major functional requests outlined: 1. Adds a common `KryptonCompressor` API that handles abstraction over algorithms. 2. Integrates dependencies for `lz4-java`, `zstd-jni`, and `brotli4j` and implements their wrappers. 3. Migrates the existing `VelocityCompressor` (deflate) to use this new interface. 4. Extends mod configuration to specify the preferred algorithm. 5. Implements protocol negotiation via Login Phase custom payload packets using Minecraft 1.21.11 `Identifier`s and `DiscardedQueryPayload`. Server falls back gracefully to `deflate`. 6. Implements an opt-in Smart Replay pipeline component (`SmartReplayEncoder`/`Decoder`) that intelligently groups identical packets with a custom header, and only enables this via Netty pipeline injection if both server and client agree to it during handshake negotiation. Co-authored-by: 404Setup <153366651+404Setup@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
… errors (#32) Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Adds support for multiple advanced compression algorithms (lz4, zstd), protocol negotiation during server join, and a smart replay feature to group duplicate packets. All network encoders and decoders were updated to use a generic compression interface.
PR created automatically by Jules for task 10969774772304487702 started by @404Setup