Skip to content

tofd: only subscribe to the stream that was asked for - #263

Open
Nixxx19 wants to merge 2 commits into
pollen-robotics:mainfrom
Nixxx19:a-connection-that-asked-for-nothing-wants-nothing
Open

tofd: only subscribe to the stream that was asked for#263
Nixxx19 wants to merge 2 commits into
pollen-robotics:mainfrom
Nixxx19:a-connection-that-asked-for-nothing-wants-nothing

Conversation

@Nixxx19

@Nixxx19 Nixxx19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

noticed tofd subscribes a connection to both streams before it even reads the request, so receiver_count is really just counting connections. ask for the imu and you're holding a depth receiver too.

moved the subscribe into the match arms so you only get the one you asked for.

nothing reads that count today so no behaviour change, but it'd be wrong for anything that did. test checks the counts over a real socket.

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