Skip to content
New issue

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

Unable to handle logs larger than 64k #48

Open
foxhack opened this issue Feb 10, 2018 · 0 comments
Open

Unable to handle logs larger than 64k #48

foxhack opened this issue Feb 10, 2018 · 0 comments

Comments

@foxhack
Copy link

foxhack commented Feb 10, 2018

bufio scanner maxTokenSize 4k~64k message size>64k ,It will cause you to be unable to handle it.

I tried to modify it.

	var scanCloser *ScanCloser
	scanCloser = &ScanCloser{scanner, connection}
	_**buf := make([]byte, bufio.MaxScanTokenSize*10)
	scanCloser.Buffer(buf, bufio.MaxScanTokenSize*10)**_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant