Documentation
¶
Overview ¶
Package wire carries execution requests and results across a process boundary.
The envelope is a 4-byte big-endian length followed by a msgpack body. Framing rather than a bare value stream is what lets a parent tell a child that produced nothing (EOF before a header — it crashed) from one that produced a partial write (header then short body — corruption). Those are different failures and get different statuses.
Index ¶
Constants ¶
const MaxFrameBytes = 64 << 20
MaxFrameBytes caps a decoded frame. A payload larger than this is refused rather than allocated, so a corrupt or hostile length header cannot exhaust the reader's memory.
Variables ¶
var ErrShortFrame = errors.New("short frame")
ErrShortFrame marks a frame whose declared length exceeded the bytes actually available. The writer died mid-write.