fix(tss-party): increase stdin buffer to 1MB for large TSS messages
Default 64KB buffer was truncating large TSS protocol messages in round 3+ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2a49ab771b
commit
f849a2a9fd
|
|
@ -479,7 +479,11 @@
|
||||||
"Bash(./node_modules/.bin/tsc:*)",
|
"Bash(./node_modules/.bin/tsc:*)",
|
||||||
"Bash(npm ls:*)",
|
"Bash(npm ls:*)",
|
||||||
"Bash(npm run build:win:*)",
|
"Bash(npm run build:win:*)",
|
||||||
"Bash(npm run clean:*)"
|
"Bash(npm run clean:*)",
|
||||||
|
"Bash(git cherry-pick:*)",
|
||||||
|
"Bash(git stash:*)",
|
||||||
|
"Bash(docker compose build:*)",
|
||||||
|
"Bash(git log:*)"
|
||||||
],
|
],
|
||||||
"deny": [],
|
"deny": [],
|
||||||
"ask": []
|
"ask": []
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,8 @@ func executeKeygen(
|
||||||
go func() {
|
go func() {
|
||||||
defer inWg.Done()
|
defer inWg.Done()
|
||||||
scanner := bufio.NewScanner(os.Stdin)
|
scanner := bufio.NewScanner(os.Stdin)
|
||||||
|
// 增加 buffer 大小到 1MB,默认 64KB 可能不够大消息
|
||||||
|
scanner.Buffer(make([]byte, 1024*1024), 1024*1024)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue