Add support for reusing the Go net/http Client.

This commit is contained in:
WJQSERVER 2025-01-23 16:05:09 +08:00
parent c90140a898
commit a84e10bb84
2 changed files with 25 additions and 5 deletions

View file

@ -91,8 +91,8 @@ func setupRateLimit(cfg *config.Config) {
}
}
func initBufferSize() {
proxy.InitChunkedBufferSize(cfg.Server.BufferSize)
func InitChunkedReq() {
proxy.InitChunkedReq(cfg.Server.BufferSize)
}
func init() {
@ -100,7 +100,7 @@ func init() {
flag.Parse()
loadConfig()
setupLogger(cfg)
initBufferSize()
InitChunkedReq()
loadlist(cfg)
setupRateLimit(cfg)