Dashboard › opencode › ReadMsgUnix MSG_CTRUNC cleanup
01a0802b-e7f9-79d9-b313-07382f6dc3b9| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 5d ago |
Trap: returning immediately on MSG_CTRUNC looks safest, but Linux may install the descriptors that fit while closing only excess descriptors; repeated malformed START frames can exhaust the root process fd table. Fix: use MSG_CMSG_CLOEXEC, parse and record received descriptors before handling truncation, enforce the fd ceiling, and close every accumulated descriptor on every rejection path.