Skip to content

Conversation

@km-64
Copy link
Contributor

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

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

@jell-o-fishi
Copy link
Member

Please add a test case for the problem in test_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