Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the number of goroutines #519

Open
windfgg opened this issue Dec 27, 2023 · 1 comment
Open

Limit the number of goroutines #519

windfgg opened this issue Dec 27, 2023 · 1 comment

Comments

@windfgg
Copy link

windfgg commented Dec 27, 2023

Expected Behavior

Current Behavior

I am using goproxy as a dependency in my proxy pool to maintain proxies for multiple IP agents

Possible Solution

When the request volume is high, goproxy can suddenly fill up the computer's CPU and memory. I don't know what the problem is, but I checked the code and it seems that there is no limit to the number of coroutines? Is it still a problem with TLS certificate encryption and decryption? Can configurable optimizations be added if possible?

Steps to Reproduce

https://github.com/windfgg/ProxyPool

Context (Environment)

  1. proxy version is : laster
  2. full command is :?
  3. system is : liunx or win

Detailed Description

Are you considering this optimization? Or provide a solution?

Possible Implementation

@qianhongyang
Copy link

Yes, this is also the case on my side. Today, I pressed the goproxy service, and once it was https interface proxy, 200qps, it directly exploded. I hope to solve this problem as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants