Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the websocket transport to a channel #3314

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

steveluscher
Copy link
Collaborator

Summary

This PR swaps out the old transport API for the new one based on transports and channel creators. This pushes the AsyncIterable creation right out to the edge of the API, meaning that exactly one AsyncIterable gets created. At all points before that the pipeline is made up of DataPublishers.

Among other things, this makes cleanup much more straightforward and eliminates several opportunities for memory leaks.

Closes #3090.

Or very nearly so.

Copy link

changeset-bot bot commented Oct 4, 2024

⚠️ No Changeset found

Latest commit: 6974ccf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 4562029 to 3b6f5ce Compare October 4, 2024 06:16
@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from 54ef405 to 35dc1bd Compare October 4, 2024 17:56
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 3b6f5ce to 67daefe Compare October 4, 2024 17:56
@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from 35dc1bd to 0f0bcc7 Compare October 4, 2024 18:07
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 67daefe to 8076033 Compare October 4, 2024 18:07
@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from 0f0bcc7 to 777f244 Compare October 4, 2024 19:27
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 8076033 to 74179ea Compare October 4, 2024 19:27
@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from 777f244 to ef92cee Compare October 4, 2024 19:33
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 74179ea to d7ad94e Compare October 4, 2024 19:34
@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from ef92cee to 3b665e4 Compare October 4, 2024 21:06
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from d7ad94e to c295101 Compare October 4, 2024 21:06
Copy link
Collaborator Author

Essentially unreviewable PR. Godspeed to us.

@steveluscher steveluscher force-pushed the 10-02-a_channel_augmenter_that_autopings_the_channel branch from 3b665e4 to 66ef71c Compare October 4, 2024 21:10
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from c295101 to e927f6c Compare October 4, 2024 21:10
@steveluscher steveluscher changed the base branch from 10-02-a_channel_augmenter_that_autopings_the_channel to 10-02-fix_lint_in_version_header October 4, 2024 21:10
@steveluscher steveluscher force-pushed the 10-02-fix_lint_in_version_header branch from 5b6a7be to ae7672a Compare October 4, 2024 21:16
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from e927f6c to 100141c Compare October 4, 2024 21:17
@steveluscher steveluscher force-pushed the 10-02-fix_lint_in_version_header branch from ae7672a to b15c26d Compare October 4, 2024 21:21
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 100141c to 859d964 Compare October 4, 2024 21:21
@steveluscher steveluscher force-pushed the 10-02-fix_lint_in_version_header branch 2 times, most recently from c7c14b0 to 8c25ae3 Compare October 4, 2024 21:25
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 859d964 to 7557358 Compare October 4, 2024 21:25
@steveluscher steveluscher changed the base branch from 10-02-fix_lint_in_version_header to graphite-base/3314 October 4, 2024 22:49
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 7557358 to 4518435 Compare October 4, 2024 22:49
@steveluscher steveluscher changed the base branch from graphite-base/3314 to master October 4, 2024 22:50
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from 4518435 to c3a3253 Compare October 4, 2024 22:50
@steveluscher steveluscher force-pushed the 10-02_Convert_websocket_transport_to_channel branch from c3a3253 to 6974ccf Compare October 5, 2024 01:51
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.

Prevent accumulation of subscription notifications when the last AsyncIterator falls out of scope
1 participant