Skip to content

binder: Inbound must deliver even if the suffix arrives out of order - #13032

Open
jdcormie wants to merge 3 commits into
grpc:masterfrom
jdcormie:ooo-msg-before-prefix
Open

binder: Inbound must deliver even if the suffix arrives out of order#13032
jdcormie wants to merge 3 commits into
grpc:masterfrom
jdcormie:ooo-msg-before-prefix

Conversation

@jdcormie

@jdcormie jdcormie commented Sep 5, 2026

Copy link
Copy Markdown
Member

Regression testing this bug fix required building unit tests for Inbound (it currently has none). We'll rely on these tests for other, bigger, upcoming changes like #12747 and #9010.

Will not squash please review each commit individually.

…getDelegate()

Permits fake/mock implementations in tests that aren't actually backed by an IBinder at all.

TAG=agy
CONV=a7051e19-0fc1-42a4-8b24-5c2e3373aa0c
…gher layer

It's hard to write a true unit test for Inbound because of its many concrete dependencies. However, today it has *no* unit tests, so we can't safely refactor it. To get out of this fix, we introduce ClientInboundTest and ServerInboundTest that target Inbound's logic by way of the Stream and BinderTransport.

TAG=agy
CONV=a7051e19-0fc1-42a4-8b24-5c2e3373aa0c
…ns initial queued slot

TAG=agy
CONV=a7051e19-0fc1-42a4-8b24-5c2e3373aa0c
@jdcormie jdcormie changed the title binder: Inbound must tolerate the suffix arriving out of order binder: Inbound must deliver even if the suffix arrives out of order Sep 5, 2026
@jdcormie
jdcormie requested a review from dbgalur September 5, 2026 02:18
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