[GH-ISSUE #1643] [multiplayer] Server transfers on BungeeCord/proxy networks kick the client #505

Closed
opened 2026-11-02 15:39:36 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @socksprox on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1643

Filed by an AI agent (Devin), not by the user themselves.

Report

On a BungeeCord/Velocity-style proxy network, being transferred between backend servers disconnects the client instead of moving it — the player gets kicked from the server.

What the code shows

The packet sequence a proxy-initiated switch produces is partly handled: a mid-play ClientboundLoginPacket resets the level (C::Login → enter_remote_dimension in crates/horizon-client/src/game/remote.rs), ClientboundStartConfigurationPacket re-runs the configuration phase (Event::Reconfigured, crates/horizon-client/src/net.rs), and Respawn is handled.

Gaps found:

  • cookie_request, store_cookie and transfer are named in the play-state clientbound id table (crates/horizon-protocol/src/ids.rs) but have no packet types in packets/play.rs, so they decode as Unknown and the game drops them. CookieResponse is only ever answered inside configure() — in play state a cookie request is never answered. Proxies use these around switches; an unanswered request is a plausible kick cause.
  • ClientboundTransferPacket exists only in the configuration packet set (packets/configuration.rs) and falls into configure()'s _ => {} arm — it never reconnects to the target.
  • The bungeecord:main plugin channel is unread: receive_play intercepts only minecraft:brand; every other clientbound CustomPayload is forwarded to the game thread and dropped. Nothing ever sends a serverbound CustomPayload, so plugins that wait for a client Connect message never get one.
  • On StartConfiguration re-entry the client does not re-send ClientInformation/brand the way vanilla's new configuration listener does.

Pinning down the exact kick needs a live repro against a real network (HORIZON_NET_DEBUG=1 logs sent packets; the disconnect reason arrives via Event::Disconnected).

Originally created by @socksprox on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1643 Filed by an AI agent (Devin), not by the user themselves. ## Report On a BungeeCord/Velocity-style proxy network, being transferred between backend servers disconnects the client instead of moving it — the player gets kicked from the server. ## What the code shows The packet sequence a proxy-initiated switch produces is partly handled: a mid-play `ClientboundLoginPacket` resets the level (`C::Login` → `enter_remote_dimension` in `crates/horizon-client/src/game/remote.rs`), `ClientboundStartConfigurationPacket` re-runs the configuration phase (`Event::Reconfigured`, `crates/horizon-client/src/net.rs`), and `Respawn` is handled. Gaps found: - `cookie_request`, `store_cookie` and `transfer` are named in the play-state clientbound id table (`crates/horizon-protocol/src/ids.rs`) but have **no packet types** in `packets/play.rs`, so they decode as `Unknown` and the game drops them. `CookieResponse` is only ever answered inside `configure()` — in play state a cookie request is never answered. Proxies use these around switches; an unanswered request is a plausible kick cause. - `ClientboundTransferPacket` exists only in the configuration packet set (`packets/configuration.rs`) and falls into `configure()`'s `_ => {}` arm — it never reconnects to the target. - The `bungeecord:main` plugin channel is unread: `receive_play` intercepts only `minecraft:brand`; every other clientbound `CustomPayload` is forwarded to the game thread and dropped. Nothing ever sends a serverbound `CustomPayload`, so plugins that wait for a client `Connect` message never get one. - On `StartConfiguration` re-entry the client does not re-send `ClientInformation`/brand the way vanilla's new configuration listener does. Pinning down the exact kick needs a live repro against a real network (`HORIZON_NET_DEBUG=1` logs sent packets; the disconnect reason arrives via `Event::Disconnected`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#505
No description provided.