Skip to content

Add Unix Domain Socket mirrors for TLS ports with metadata export#357

Draft
kriszyp wants to merge 8 commits intomainfrom
symphony-prep
Draft

Add Unix Domain Socket mirrors for TLS ports with metadata export#357
kriszyp wants to merge 8 commits intomainfrom
symphony-prep

Conversation

@kriszyp
Copy link
Copy Markdown
Member

@kriszyp kriszyp commented Apr 15, 2026

Creates per-thread UDS mirrors for secure HTTP/TCP servers, writing YAML metadata files containing certificate information. Includes cleanup helpers for socket lifecycle management and comprehensive unit tests for metadata serialization and file operations.

This is designed to facilitate high efficiency socket handling from HarperFast/symphony.

PROXY protocol handling pairs with HarperFast/symphony#5

kriszyp and others added 8 commits April 15, 2026 17:12
Creates per-thread UDS mirrors for secure HTTP/TCP servers, writing YAML metadata files containing certificate information. Includes cleanup helpers for socket lifecycle management and comprehensive unit tests for metadata serialization and file operations.
When symphony connects to a per-thread UDS mirror and sends a PROXY v1
header, strip it before the HTTP parser sees it and set socket.remoteAddress
/ socket.remotePort to the real client values.

Uses prependListener so our one-time data handler fires before Node's HTTP
parser. socket.unshift() returns any non-header bytes back to the read
buffer. Connections without a PROXY header pass through unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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