Skip to content

Add handling of unknown control message, avoid blocking - #4

Merged
mondain merged 4 commits into
mainfrom
feature/handle-unknown-request
Apr 14, 2026
Merged

Add handling of unknown control message, avoid blocking#4
mondain merged 4 commits into
mainfrom
feature/handle-unknown-request

Conversation

@mondain

@mondain mondain commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add handling of unknown control message, to avoid FETCH blocking message processing

Validation

  • cmake -S . -B build
  • cmake --build build
  • ctest --test-dir build --output-on-failure

Protocol Impact

  • draft-14
  • draft-16
  • packaging only

Notes

Anything reviewers should pay special attention to.

@mondain mondain self-assigned this Apr 13, 2026
@mondain
mondain requested a review from Copilot April 13, 2026 16:33
@mondain mondain changed the title Add handling of unknown control message, to avoid FETCH blocking mess… Add handling of unknown control message, avoid blocking Apr 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates MOQT control-stream handling to ensure unrecognized/unhandled control messages don’t stall parsing and block subsequent request processing.

Changes:

  • Expand control message type name mapping for additional MOQT message types.
  • In serve_subscriptions(), skip (and log) any control messages that aren’t acted upon to avoid buffer blockage.
  • In next_control_message(), add a fallback path intended to consume unknown control message types as length-prefixed messages.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/transport/moqt_session.cpp Skips unhandled control message types to prevent control-buffer blocking; adds logging and more type-name mappings.
src/transport/moqt_control_messages.cpp Changes control-message boundary detection to attempt consuming unknown message types instead of blocking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/transport/moqt_session.cpp Outdated
Comment thread src/transport/moqt_control_messages.cpp Outdated
Comment thread src/transport/moqt_control_messages.cpp Outdated
Comment thread src/transport/moqt_session.cpp Outdated
mondain and others added 2 commits April 13, 2026 11:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/transport/moqt_session.cpp
Comment thread src/transport/moqt_session.cpp Outdated
Comment thread src/transport/moqt_control_messages.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mondain
mondain merged commit f0125ec into main Apr 14, 2026
2 checks passed
@mondain
mondain deleted the feature/handle-unknown-request branch April 14, 2026 17:58
Copilot stopped work on behalf of mondain due to an error April 14, 2026 17:59
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.

5 participants