Skip to content

Tag Ntrip caster stream log messages with client and mountpoint - #516

Closed
jclark wants to merge 1 commit into
caster-bounded-queuefrom
caster-log-remote-addr
Closed

jclark wants to merge 1 commit into
caster-bounded-queuefrom
caster-log-remote-addr

Conversation

@jclark

@jclark jclark commented Oct 24, 2026

Copy link
Copy Markdown
Owner

The caster's stream messages went through the shared caster logger, so with several rovers on one mountpoint a write error or a queue-full warning could not be matched to a client. Only the queue-full warning named the mountpoint.

serveStream now tags a logger with the client's remote address and the mountpoint and passes it down to streamLoop and queue, so every message about a stream carries both. The queue-full warning drops its own mountpoint field, which the tag now provides. This is the caster counterpart of #512 for the proxy.

Stacked on #514.

make test and the ntrip smoke tests pass (ntrip/rtklib skipped: no str2str here).

The caster's stream messages went through the shared caster logger, so
with several rovers on one mountpoint a write error or a queue-full
warning could not be matched to a client; only the queue-full warning
named the mountpoint. serveStream now tags a logger with the client's
remote address and the mountpoint and passes it down to streamLoop and
queue, so every message about a stream says which one it is.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T05:54:29.227457Z 513a3b6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jclark

jclark commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

Closing in favour of #517, which fixes #496 by disconnecting a client that falls more than 10 seconds behind, without a queue goroutine.

@jclark jclark closed this Oct 24, 2026
@jclark
jclark deleted the caster-log-remote-addr branch October 24, 2026 09:24
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.

1 participant