Skip to content

bufio.Reader doesn't stop on buffer over run. #128

@fd

Description

@fd

br := bufio.NewReaderSize(conn, bufSize)

The intend here is to do one read syscall but also limit the read to bufSize (256 bytes). The problem is that this bufio.Reader will not stop reading 256 bytes sized chunks after the PP header. this definitely needs a io.LimitReader

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions