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

Add MoQSession::drain API #9

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

Conversation

afrind
Copy link
Contributor

@afrind afrind commented Nov 14, 2024

Summary: This will close the session when all fetches and subscribes are complete. This required changing the objects() and payload() read loops a bit. Since the sources are shared pointers, the callees can continue reading from them after the session is gone. We use try_dequeue() to drain the queue after the session's token has been cancelled.

Reviewed By: NEUDitao

Differential Revision: D65532678

Summary:

Adds support to MoQFramer, MoQCodec and MoQSession to send and receive fetch streams

Differential Revision: D65532676
Summary: This will close the session when all fetches and subscribes are complete.  This required changing the objects() and payload() read loops a bit.  Since the sources are shared pointers, the callees can continue reading from them after the session is gone.  We use try_dequeue() to drain the queue after the session's token has been cancelled.

Reviewed By: NEUDitao

Differential Revision: D65532678
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65532678

afrind added a commit to afrind/moxygen that referenced this pull request Nov 14, 2024
Summary:

This will close the session when all fetches and subscribes are complete.  This required changing the objects() and payload() read loops a bit.  Since the sources are shared pointers, the callees can continue reading from them after the session is gone.  We use try_dequeue() to drain the queue after the session's token has been cancelled.

Reviewed By: NEUDitao

Differential Revision: D65532678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants