Reconnect to the Saturn server and time out requests
Move to session-java 0.2.0 (Gitea package registry) and rework ServiceClient around a single connect loop: - Reconnect with exponential backoff (1 s -> 60 s) when the connection drops, e.g. on every server redeploy; give up only when retrying cannot help (no Minecraft session, or the server rejects the token) - Publish the session only after authentication succeeds, and replace (rather than append to) owned cosmetics and clear cached players on reconnect - Time out every request after 10 s and connecting after 10 s, so a lost response can no longer hang the player-lookup worker forever - Register onClientStopping once, and keep a local session reference in request callbacks - Allow -Dsaturn.serverUri to point the client at a local server Refs saturnclientmc/saturnclient#4, saturnclientmc/saturnclient#5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+1
-1
@@ -7,5 +7,5 @@ java {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "com.github.selimaj-dev:session-java:0.1.6"
|
||||
implementation "dev.selimaj:session-java:0.2.0"
|
||||
}
|
||||
Reference in New Issue
Block a user