Skip to content

docs(stream): clean up stale service ownership comments#485

Merged
stackia merged 1 commit into
mainfrom
comment-optimize
May 15, 2026
Merged

docs(stream): clean up stale service ownership comments#485
stackia merged 1 commit into
mainfrom
comment-optimize

Conversation

@stackia
Copy link
Copy Markdown
Owner

@stackia stackia commented May 15, 2026

Summary

  • Removed stale service_owned references from stream cleanup comments.
  • Clarified that connection_cleanup() owns and frees the per-connection service instance.
  • Updated the stream_context_cleanup() comment to reflect the current ownership model.

Testing

  • Not run (not requested)

Copilot AI review requested due to automatic review settings May 15, 2026 09:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Documentation-only cleanup removing references to the obsolete service_owned flag from comments in the stream/connection cleanup paths, reflecting that connections always own and free their per-request service instance.

Changes:

  • Updated stream_context_cleanup() comment to drop the stale c->service_owned reference.
  • Updated stream.h doxygen comment for the cleanup function to reflect connection-owned service lifetime.
  • Updated connection_cleanup() comment to describe unconditional freeing of the per-connection service.

Reviewed changes

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

File Description
src/stream.h Reworded doxygen comment for stream_context_cleanup() to clarify ownership.
src/stream.c Removed stale mention of c->service_owned flag in cleanup note.
src/connection.c Updated comment to reflect that the service is always per-connection and freed unconditionally.

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

@github-actions
Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-485.eastasia.1.azurestaticapps.net

@stackia stackia enabled auto-merge (squash) May 15, 2026 09:06
@stackia stackia merged commit da4e8d2 into main May 15, 2026
11 checks passed
@stackia stackia deleted the comment-optimize branch May 15, 2026 09:07
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