mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 17:19:06 +01:00
tweak: disable bytes pool for socket-proxy and agent
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user