mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-19 07:54:48 +01:00
tweak: optimize memory usage under load
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user