Skip to content

add YamuxUnixSocket implementation for independent evolution of…#30

Merged
ruslanti merged 4 commits into
mainfrom
ref/multiplex_connection
Jul 9, 2026
Merged

add YamuxUnixSocket implementation for independent evolution of…#30
ruslanti merged 4 commits into
mainfrom
ref/multiplex_connection

Conversation

@ruslanti

@ruslanti ruslanti commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

… yamux transport

Copilot AI review requested due to automatic review settings July 9, 2026 08:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a standalone YamuxUnixSocket transport implementation (duplicated from the existing unix_socket module) so the yamux daemon proxy’s transport/handshake behavior can evolve independently, and updates the crate/dependency versions accordingly.

Changes:

  • Add YamuxUnixSocket implementation with connect/reconnect, handshake gating, and buffered writes.
  • Export YamuxUnixSocket from nginx_module’s public API.
  • Bump nginx_module version and loosen/upgrade dependency versions in Cargo.toml (with corresponding Cargo.lock updates).

Reviewed changes

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

File Description
nginx_module/src/yamux_unix_socket.rs New yamux-specific Unix socket transport implementation with handshake + reconnect logic.
nginx_module/src/lib.rs Exposes YamuxUnixSocket from the crate.
nginx_module/Cargo.toml Bumps crate version and updates dependency version constraints.
Cargo.lock Updates the resolved dependency graph to match the manifest changes.

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

Comment thread nginx_module/src/yamux_unix_socket.rs Outdated
Comment thread nginx_module/src/yamux_unix_socket.rs
Comment thread nginx_module/src/yamux_unix_socket.rs Outdated
Comment thread nginx_module/src/yamux_unix_socket.rs
@ruslanti ruslanti self-assigned this Jul 9, 2026
@ruslanti ruslanti added the enhancement New feature or request label Jul 9, 2026
ruslanti and others added 3 commits July 9, 2026 11:12
fix Inner::send only flushes pending write buffers when the state is Connected

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
fix the reconnect backoff update can overshoot TIMEOUT_MS

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
sockaddr_un::sun_path is a fixed-size C string buffer that should remain NUL-terminated

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ruslanti ruslanti merged commit b7526f6 into main Jul 9, 2026
7 checks passed
@ruslanti ruslanti deleted the ref/multiplex_connection branch July 9, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants