Skip to content

Improvement - Add TransferModule#ping validation & increase PingRequest timeout to 10s - #302

Merged
ItsNature merged 1 commit into
version/1.2.9from
improvement/transfer-ping
Aug 10, 2026
Merged

Improvement - Add TransferModule#ping validation & increase PingRequest timeout to 10s#302
ItsNature merged 1 commit into
version/1.2.9from
improvement/transfer-ping

Conversation

@ItsNature

@ItsNature ItsNature commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Overview

Description:
Fixes the server ping round-trip failing whenever a request contains an unreachable address. The client pings every address and reports unreachable ones as TIMED_OUT. Additionally, requests with more than 10 server IPs were silently dropped by the client and only surfaced as a generic timeout.

Changes:

  • PingRequest overrides the timeout to 10s, giving ping round-trips the headroom they need.
  • TransferModuleImpl#ping now fails fast with IllegalArgumentException when the request contains no server IPs or more than TransferModule.MAX_PINGS_PER_PACKET (10), instead of sending a request the client can't honor.

Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature added type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition labels Jul 12, 2026
@ItsNature ItsNature changed the title Improvement - Add TransferModule#ping validation & increase PingRequest timeout to 10s` Improvement - Add TransferModule#ping validation & increase PingRequest timeout to 10s Jul 12, 2026
@ItsNature
ItsNature force-pushed the improvement/transfer-ping branch from e7c8951 to ef80ce1 Compare August 10, 2026 21:04
@ItsNature
ItsNature merged commit e5a2b0b into version/1.2.9 Aug 10, 2026
2 checks passed
@ItsNature
ItsNature deleted the improvement/transfer-ping branch August 10, 2026 21:05
@ItsNature ItsNature mentioned this pull request Aug 11, 2026
ItsNature added a commit that referenced this pull request Aug 19, 2026
* Deploy as `1.2.9-SNAPSHOT`

* Feature - Height Limit Module (#300)

* Height Limit Module

* Add default height limit config entry, more callouts & update example

* Document snake_case custom data keys (#301)

* Add `TransferModule#ping` validation & increase `PingRequest` timeout to 10s (#302)

* example(internal): npc visibility tracking (#303)

* Feature - Inventory & Chat Buttons (#304)

* Inventory & Chat Buttons

# Conflicts:
#	gradle/libs.versions.toml

* Add default chat & inventory buttons config option

* Add button docs

* Add button images to docs

* Update inventory.mdx

* Update chat.mdx

* Remove temp gradle publish

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>

* Add `NametagVisibilityOverride` to `Nametag` (#305)

# Conflicts:
#	gradle/libs.versions.toml

* Sync LunarClient Mods & Options (#307)

* Sync LunarClient Mods & Options

* Update version tags to 1.2.9

---------

Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>

* Bump to 1.2.9 (#308)

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>
Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition

Development

Successfully merging this pull request may close these issues.

3 participants