Leave overflow logic to go-msgio
go-msgio implements the message length limit (currently 8MB), so the
secio reader can get away without re-implementing this logic.
Instead, the reader lets go-msgio allocate a buffer when the output
buffer is too small to hold the incoming message. This buffer is kept
and drained into the output buffer(s) of Read() calls and released back
to the msgio instance once it is fully drained.
License: MIT
Signed-off-by: Randall Leeds <randall@bleeds.info>
Showing
Please register or sign in to comment