Skip to content

bufio.Scanner: token too long #159

@MatheMatrix

Description

@MatheMatrix

When return is very long (more than 64KB), it will get an error: bufio.Scanner: token too long

This is because go-qemu/qmp/socket.go:160 uses a small default Buffer (bufio.scan.MaxScanTokenSize) while real world may much longer than that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions