-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use reader.ReadString() to read buffer
Instead of creating a scanner and dealing with those scanner sh*t, let's use reader.ReadString(). - The bufio package has a limit called MaxScanTokenSize = 64 * 1024, and isn't enough in most situations (upstream annie has a huge output to stdout). - bufio.reader.ReadString() is a more advanced func and just won't have that problem. - For further information, see https://www.wuyifei.cc/sanner-token-too-long/ Closes #2 Signed-off-by: 135e2 <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters