tweak: disable bytes pool for socket-proxy and agent

This commit is contained in:
yusing
2025-05-23 23:01:27 +08:00
parent 0f3b8e68ce
commit 20a1649275
2 changed files with 15 additions and 1 deletions

View File

@@ -20,9 +20,14 @@ import (
"sync"
"github.com/yusing/go-proxy/internal/utils"
"github.com/yusing/go-proxy/internal/utils/synk"
"golang.org/x/net/http/httpguts"
)
func init() {
synk.BytesPoolEnabled = false
}
// ReverseProxy is an HTTP Handler that takes an incoming request and
// sends it to another server, proxying the response back to the
// client.