We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When return is very long (more than 64KB), it will get an error: bufio.Scanner: token too long
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.
go-qemu/qmp/socket.go:160
The text was updated successfully, but these errors were encountered:
I also triggered this bug with the hmp command info mem which returns a lot more than 64KB.
info mem
Why was Scanner used in the first place? Can't the socket be just read until EOF?
Scanner
Sorry, something went wrong.
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: