Skip to content

Conversation

texodus
Copy link
Member

@texodus texodus commented May 5, 2025

This PR fixes an issue which caused Client instances bound to a ProxySession to mis-route some messages due to re-used Message IDs. ProxySession is used by the PerspectiveWidget Jupyter widget to share a connection for both the Widget and local Client, and it relies on msg_id field to discriminate transport messages to each. These are now seeded randomly instead of starting at 0. The fix applied may still rarely have conflicts - but they would require a few unlikely conditions to occur in sequence, and eliminating conflicts completely would be quite a bit more difficult to implement.

A test is included based on the issue reported in https://github.com/tomjakubowski/perspective/tree/bug/session

@texodus texodus added the bug Concrete, reproducible bugs label May 5, 2025
@texodus texodus marked this pull request as ready for review May 5, 2025 03:02
@texodus texodus merged commit 9db54bb into master May 5, 2025
14 checks passed
@texodus texodus deleted the bug/session branch May 5, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant