Skip to content

Fix stream id generation#331

Merged
jell-o-fishi merged 6 commits into
rsocket:masterfrom
km-64:fix-stream-id-generation
Sep 5, 2025
Merged

Fix stream id generation#331
jell-o-fishi merged 6 commits into
rsocket:masterfrom
km-64:fix-stream-id-generation

Conversation

@km-64

@km-64 km-64 commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Fix the behaviour of stream id generation in rsocket.StreamControl

This PR is intended to replicate the functionality of the implementation of io.rsocket.core.StreamIdSupplier in rsocket-java. In short, the java version uses a do while loop, while the python version only uses a while loop, which causes some unexpected behaviour.

See issue #330

Comment thread rsocket/stream_control.py Outdated
Comment thread rsocket/stream_control.py Outdated
@jell-o-fishi

Copy link
Copy Markdown
Member

Please add a test case for the problem in test_stream_control.py

Comment thread rsocket/stream_control.py
@jell-o-fishi jell-o-fishi merged commit fd841da into rsocket:master Sep 5, 2025
5 of 8 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