Skip to content

Conversation

@theduke
Copy link

@theduke theduke commented Dec 29, 2025

The 32 limit is too conservative.

@artemyarulin artemyarulin self-requested a review December 29, 2025 14:05
@artemyarulin artemyarulin self-requested a review January 5, 2026 11:35
@artemyarulin
Copy link

@theduke theduke force-pushed the fd-transfer-max-fds branch 2 times, most recently from 08a0167 to 2fc66cb Compare January 12, 2026 16:53
- Add v2 Unix socket transfer framing (magic prefix + fd count + payload length)
  with chunked `SCM_RIGHTS` sends/receives to avoid ancillary truncation and
  short reads on streams.

- Detect v2 via a leading 0 byte peek; otherwise dispatch to the legacy v1 path.
- Preserve legacy behavior/limits
  (single recvmsg, 32 FD cap, 2048-byte payload buffer)
  for backward compatibility while allowing newer senders to use the flexible
  v2 format.
@theduke theduke force-pushed the fd-transfer-max-fds branch from 2fc66cb to c01bf8a Compare January 12, 2026 17:25
@theduke theduke merged commit fffc91e into edge Jan 13, 2026
3 of 5 checks passed
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.

3 participants