Skip to content

Fix RPCLayer handler thread shutdown and unknown-id NPE - #8

Merged
wadoon merged 7 commits into
mainfrom
fix/java-client-stability
Jun 29, 2026
Merged

Fix RPCLayer handler thread shutdown and unknown-id NPE#8
wadoon merged 7 commits into
mainfrom
fix/java-client-stability

Conversation

@unp1

@unp1 unp1 commented Jun 22, 2026

Copy link
Copy Markdown
Member

Two stability fixes in the hand-rolled Java client transport (keyext.api.client):

Tests: RPCLayerTest gains handlerSurvivesUnknownResponseId and disposeStopsHandlerThread (both fail on the old code, pass with the fix).

Stacked on #7 (the test-compilation fix) so CI is green; retarget to main once #7 merges.

PR has been created with AI tooling

unp1 added 2 commits June 22, 2026 20:47
The test pre-loaded a response before the request was registered, so the
reader could deliver it before callSync registered its waiting future; the
handler then NPE'd and callSync blocked forever (no timeout). It is an
artificial scenario and is covered deterministically by the client-stability
PR's callSync test.
@unp1
unp1 force-pushed the fix/client-test-compilation branch from ff41056 to 61e6d2f Compare June 22, 2026 18:49
@unp1
unp1 force-pushed the fix/java-client-stability branch from a7136f9 to fc026c6 Compare June 22, 2026 19:01
@wadoon
wadoon changed the base branch from fix/client-test-compilation to main June 22, 2026 21:35
@wadoon
wadoon merged commit fb665f1 into main Jun 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants