Unable to handle logs larger than 64k
foxhack opened this issue · 0 comments
foxhack commented
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)**_