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

feat: support leastconn" strategy #211

Closed
wants to merge 1 commit into from
Closed

Conversation

JayLZhou
Copy link

solved issue.#205
Although I added a file to rewrite net.conn, it seems a bit complicated, but in fact it only adds a layer of judgment to the leastconn strategy, and there is no change in other aspects. In order to realize the transition from user mode to kernel mode, I have to do it
I did some implementations to demonstrate
I opened three agents here 127.0.0.1:8080 127.0.0.1:1080 127.0.0.1:8081

2020/12/11 16:27:45 server.go:162: [http] 127.0.0.1:56405 <-> www.baidu.com:80 via 127.0.0.1:8080
2020/12/11 16:27:45 server.go:162: [http] 127.0.0.1:56408 <-> www.alibaba.com:80 via 127.0.0.1:1080
2020/12/11 16:27:45 server.go:162: [http] 127.0.0.1:56413 <-> www.tencent.com:80 via 127.0.0.1:8081
2020/12/11 16:27:48 server.go:162: [http] 127.0.0.1:56422 <-> www.baidu.com:80 via 127.0.0.1:8080
2020/12/11 16:27:48 server.go:162: [http] 127.0.0.1:56425 <-> www.alibaba.com:80 via 127.0.0.1:1080
2020/12/11 16:27:48 server.go:162: [http] 127.0.0.1:56428 <-> www.tencent.com:80 via 127.0.0.1:8081
I can do more tests if you need

@phantomcraft
Copy link

I'm waiting for @nadoo for merging in the dev branch to test it.

@nadoo nadoo force-pushed the master branch 2 times, most recently from 075b60d to ce85f15 Compare September 13, 2021 16:57
@github-actions github-actions bot added the Stale label Dec 19, 2021
@github-actions github-actions bot closed this Dec 25, 2021
@nadoo nadoo reopened this Dec 25, 2021
@github-actions github-actions bot removed the Stale label Dec 26, 2021
@gaby
Copy link
Contributor

gaby commented May 30, 2024

@JayLZhou Probably worth updating the README too.

@nadoo Any chance of getting this?

@nadoo nadoo deleted the branch nadoo:master August 16, 2024 14:14
@nadoo nadoo closed this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants