Repository navigation
Chore/tunnel handshake logging - #149
Merged
Merged
Conversation
The "early eof" / "Failed to read token hash" errors gave no hint about what was connecting. Handshake failures now log the peer address, why the read failed (closed, timed out, I/O error), and how many bytes arrived, with a hex and text preview so HTTP or TLS probes are easy to spot. Connections that close without sending anything (port scans, TCP health checks) are logged at info instead of error. read_from_stream now owns the handshake timeout and no longer logs on its own, which removes the duplicate tunnel_token.rs:49 error line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Writing connections and system resources to the datastore puts heavy load on the machine. Setting STORE_TELEMETRY_IN_DATASTORE=false makes both RPCs log that the data was accepted and return immediately, skipping all datastore calls (device authorization check, IP info lookups and the inserts). Defaults to true, so existing deployments are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.