[PR #7897] Add live player idle timeout management #7883

Open
opened 2026-11-03 07:25:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7897
Author: @TiggerTakkyTTT
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/server-management-idle-timeout


📝 Commits (1)

  • 2e730b0 Add live player idle timeout management

📊 Changes

5 files changed (+115 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated.rs (+11 -3)
📝 crates/horizon-client/src/game/dedicated/management.rs (+17 -0)
📝 crates/horizon-server/src/management_methods.rs (+45 -0)
📝 tools/port_map/rest-017.tsv (+2 -1)
📝 tools/test_management_protocol_parity.py (+40 -1)

📄 Description

🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6.1), not by TiggerTakkyTTT personally.

What and why

The advertised minecraft:serversettings/player_idle_timeout methods currently fail, and the dedicated server captures player-idle-timeout only at startup. Add live get/set support so management changes immediately reach the idle sweep and persist in server.properties and server.toml across restarts.

Part of #6597. Extends the existing TLS management parity harness with timeout changes, zero and negative values, invalid input, fractional values, integer overflow, repeated writes, saved properties, and restart checks.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

MinecraftServerSettingsServiceImpl.getPlayerIdleTimeout and setPlayerIdleTimeout, DedicatedServer.playerIdleTimeout and setPlayerIdleTimeout, ServerGamePacketListenerImpl.tick, and vanilla's Codec.INT number conversion, checked against the installed vanilla 26.3 bytecode. Regression coverage: tools/test_management_protocol_parity.py.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, base 31f83499b)

Check Result
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed
rustfmt ✅
clippy ✅
tests: horizon-client, horizon-server ✅ 837 passed
doc tests ✅
mod API up to date ✅
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher checks ➖ launcher untouched

Live management protocol comparison against vanilla 26.3 passed reads, writes, invalid input, fractional values, integer overflow, saved properties and restart checks. The separate comparison against the generated discovery-schema file is unavailable locally because that file is absent.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7897 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/server-management-idle-timeout` --- ### 📝 Commits (1) - [`2e730b0`](https://github.com/horizon-rust/horizon/commit/2e730b0bd575ed9871fdfba7332972f798c438b0) Add live player idle timeout management ### 📊 Changes **5 files changed** (+115 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+11 -3) 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+17 -0) 📝 `crates/horizon-server/src/management_methods.rs` (+45 -0) 📝 `tools/port_map/rest-017.tsv` (+2 -1) 📝 `tools/test_management_protocol_parity.py` (+40 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6.1), not by TiggerTakkyTTT personally. ## What and why The advertised `minecraft:serversettings/player_idle_timeout` methods currently fail, and the dedicated server captures `player-idle-timeout` only at startup. Add live get/set support so management changes immediately reach the idle sweep and persist in `server.properties` and `server.toml` across restarts. Part of #6597. Extends the existing TLS management parity harness with timeout changes, zero and negative values, invalid input, fractional values, integer overflow, repeated writes, saved properties, and restart checks. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `MinecraftServerSettingsServiceImpl.getPlayerIdleTimeout` and `setPlayerIdleTimeout`, `DedicatedServer.playerIdleTimeout` and `setPlayerIdleTimeout`, `ServerGamePacketListenerImpl.tick`, and vanilla's `Codec.INT` number conversion, checked against the installed vanilla 26.3 bytecode. Regression coverage: `tools/test_management_protocol_parity.py`. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, base `31f83499b`) | Check | Result | | --- | --- | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed | | rustfmt | ✅ | | clippy | ✅ | | tests: horizon-client, horizon-server | ✅ 837 passed | | doc tests | ✅ | | mod API up to date | ✅ | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher checks | ➖ launcher untouched | Live management protocol comparison against vanilla 26.3 passed reads, writes, invalid input, fractional values, integer overflow, saved properties and restart checks. The separate comparison against the generated discovery-schema file is unavailable locally because that file is absent. <!-- Please tick "Allow edits by maintainers": we push small fixups ourselves instead of a round trip. See CONTRIBUTING.md. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7883
No description provided.