Skip to content

rpc: release unsent Returns for rejected Calls - #654

Merged
lthibault merged 1 commit into
mainfrom
codex/rpc-unsent-return-cleanup
Jul 25, 2026
Merged

lthibault merged 1 commit into
mainfrom
codex/rpc-unsent-return-cleanup

Conversation

@lthibault

Copy link
Copy Markdown
Collaborator

Summary

  • discharge both newReturn ownership references when a rejected Call target abandons the send path
  • cover unknown imported capabilities and unknown or finished promised-answer targets
  • preserve existing protocol errors and exact-once incoming message release

Testing

  • go test ./rpc -run TestRejectedCallTargetReleasesUnsentReturn -count=1000
  • go test ./rpc -count=1
  • go test ./... -count=1
  • go test -race -short ./... -count=1
  • go vet ./rpc

Closes #649.

@lthibault
lthibault merged commit 09f83a3 into main Jul 25, 2026
4 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.

rpc: release unsent Return messages on rejected Call targets

1 participant