Skip to content

server-stream: follow-up on SSE Replay Buffer (#23226)#25047

Open
ServeurpersoCom wants to merge 6 commits into
ggml-org:masterfrom
ServeurpersoCom:sse-replay-buffer-followup
Open

server-stream: follow-up on SSE Replay Buffer (#23226)#25047
ServeurpersoCom wants to merge 6 commits into
ggml-org:masterfrom
ServeurpersoCom:sse-replay-buffer-followup

Conversation

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

Overview

Follow-up to #23226 addressing @ggerganov review

No functional change to the resumable stream behavior.

Additional information

  • pimpl: the stream_session_manager implementation is hidden in the .cpp, built on top of d5b1b88. the header only exposes the pipe surface and the route factories.

  • the manager is a file-static singleton driven by server_stream_session_manager_start/stop, no extern.

  • public stream functions scoped under the server_stream_ prefix.

  • done, completed_ts and the GC running flag are plain members under their mutex, with the condvar predicates set under the lock. cancelled stays atomic for the lock-free should_stop poll.

  • comments trimmed to the concurrency, lifetime and ordering rationale.

  • bring-up traces moved to SRV_DBG so they stay available for diagnostics without polluting the default log.

  • dev docs updated for the pimpl and the server_stream_ prefix.

Requirements

ggerganov and others added 6 commits June 26, 2026 13:43
address review from ggerganov: scope the public stream functions under the
server_stream_ prefix, matching server_stream_session_manager_start/stop.
address review from ggerganov: make done, completed_ts and the GC running flag plain members under their
mutex and set the condvar predicates under the lock. keep cancelled atomic for
the lock-free should_stop poll.
address review from ggerganov: drop comments that restate the code, keep the
concurrency, lifetime and ordering rationale. de-stale a few comments left by the
pimpl: g_stream_sessions is now internal and the /v1/streams listing is gone.
reflect server_stream_session_manager_start/stop and the server_stream_ prefix,
note the manager is now a file-static singleton hidden in the .cpp
keep the bring-up traces for diagnostics but off the default log: skip
drain, draining, drain ended, DELETE evict, attach_pipe, and the router
stream resume proxy.
@ServeurpersoCom ServeurpersoCom requested a review from a team as a code owner June 26, 2026 11:51
@github-actions github-actions Bot added documentation Improvements or additions to documentation server labels Jun 26, 2026
@ggerganov ggerganov self-assigned this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants