Update XHTTP

This commit is contained in:
Sergei Maklagin
2025-12-11 02:46:57 +03:00
parent d7f0cea4ff
commit 287fe834db
9 changed files with 94 additions and 43 deletions

View File

@@ -144,7 +144,7 @@ func Compact(mb MultiBuffer) MultiBuffer {
for i := 1; i < len(mb); i++ {
curr := mb[i]
if last.Len()+curr.Len() > Size {
if curr.Len() > last.Available() {
mb2 = append(mb2, last)
last = curr
} else {