Skip to content

Fix duplicate player cookie requests - #14274

Closed
HP-network wants to merge 1 commit into
PaperMC:mainfrom
HP-network:fix/retrieve-cookie-duplicates
Closed

HP-network wants to merge 1 commit into
PaperMC:mainfrom
HP-network:fix/retrieve-cookie-duplicates

Conversation

@HP-network

Copy link
Copy Markdown

Fixes #14211

retrieveCookie currently stores one pending future per cookie key, so a second request replaces the first and the first future never completes. Keep a FIFO queue per key and consume one pending request for each response. Requests for different keys remain independent.

Validation: ./gradlew :paper-server:applyPatches :paper-server:compileJava --no-daemon.

@HP-network
HP-network requested a review from a team as a code owner September 18, 2026 11:42
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Sep 18, 2026
@Doc94

Doc94 commented Sep 18, 2026

Copy link
Copy Markdown
Member

Already exists a PR for that issue. #14245

For the future you can check the references in the issue for make sure if exists a PR related to.

@HP-network

Copy link
Copy Markdown
Author

Closing this in favor of the existing implementation in #14245.

@HP-network HP-network closed this Sep 18, 2026
@github-project-automation github-project-automation Bot moved this from Awaiting review to Closed in Paper PR Queue Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

invoking retrieveCookie(NamespacedKey) with the same namespace twice deletes the first retrive from the map, resulting in kicks

2 participants