Skip to content

Conversation

@hankhsu1996
Copy link
Owner

Summary

Fixed two race conditions in RpcEndpoint that could cause "Unknown request ID" errors:

  • SendMethodCall: Now waits for request registration before sending to transport
  • HandleResponse: Now waits on correct executor (endpoint_strand_) for request lookup

Changes

  • Added synchronization point in SendMethodCall to ensure request is in pending_requests_ before sending
  • Changed HandleResponse to wait on endpoint_strand_ instead of this_coro::executor

All tests pass.

@hankhsu1996 hankhsu1996 enabled auto-merge (squash) October 10, 2025 03:29
@hankhsu1996 hankhsu1996 merged commit 448d507 into main Oct 10, 2025
5 checks passed
@hankhsu1996 hankhsu1996 deleted the bugfix/pending-requests-race branch October 10, 2025 03:32
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.

1 participant