fix spurious error reading all buffer data
basic client-side framing