tweak: optimize memory usage under load

This commit is contained in:
yusing
2025-05-24 22:05:42 +08:00
parent 5b7c392297
commit f0ab14cb1e
5 changed files with 127 additions and 104 deletions

View File

@@ -20,14 +20,9 @@ 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.