• Randall Leeds's avatar
    Leave overflow logic to go-msgio · f5809511
    Randall Leeds authored
    
    
    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: default avatarRandall Leeds <randall@bleeds.info>
    f5809511
rw.go 6.45 KB