[GH-ISSUE #313] Load balancing is missing in socks mode #229

Closed
opened 2026-02-27 23:16:05 +03:00 by kerem · 10 comments
Owner

Originally created by @PtDragon on GitHub (Aug 27, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/313

Trying to use load balancing just throws out error.

Expected Behavior

working as in http mode for load balancing options

Current Behavior

error appears

Possible Solution

Steps to Reproduce

  1. ./proxy socks --lb-method=leastconn -p "0.0.0.0:3080" -T tcp -P "127.0.0.1:1080" -P "127.0.0.1:1081" -P "127.0.0.1:1082" -P "127.0.0.1:1083" -P "127.0.0.1:1084" -P "127.0.0.1:1085" -P "127.0.0.1:1086" -P "127.0.0.1:1087" --daemon
    2019/08/27 17:07:32 err : unknown long flag '--lb-method'

Context (Environment)

  1. proxy version is : v8.1(latest at the moment)
  2. full command is : ./proxy socks --lb-method=leastconn -p "0.0.0.0:3080" -T tcp -P "127.0.0.1:1080" -P "127.0.0.1:1081" -P "127.0.0.1:1082" -P "127.0.0.1:1083" -P "127.0.0.1:1084" -P "127.0.0.1:1085" -P "127.0.0.1:1086" -P "127.0.0.1:1087" --daemon
    2019/08/27 17:07:32 err : unknown long flag '--lb-method'
  3. system is : Linux

I'm trying to use it for proper load balancing of socks5 servers(v2ray client side is working as socks5) with full support of UDP commands as i need them.
Else i could use any TCP load balancer.
I hope this can be solved easily enough on your side (as i think there is just a bit of code missing).

Detailed Description

Possible Implementation

Originally created by @PtDragon on GitHub (Aug 27, 2019). Original GitHub issue: https://github.com/snail007/goproxy/issues/313 <!--- Provide a general summary of the issue in the Title above --> Trying to use load balancing just throws out error. ## Expected Behavior <!--- Tell us what should happen --> working as in http mode for load balancing options ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> error appears ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. ./proxy socks --lb-method=leastconn -p "0.0.0.0:3080" -T tcp -P "127.0.0.1:1080" -P "127.0.0.1:1081" -P "127.0.0.1:1082" -P "127.0.0.1:1083" -P "127.0.0.1:1084" -P "127.0.0.1:1085" -P "127.0.0.1:1086" -P "127.0.0.1:1087" --daemon 2019/08/27 17:07:32 err : unknown long flag '--lb-method' ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : v8.1(latest at the moment) 1. full command is : ./proxy socks --lb-method=leastconn -p "0.0.0.0:3080" -T tcp -P "127.0.0.1:1080" -P "127.0.0.1:1081" -P "127.0.0.1:1082" -P "127.0.0.1:1083" -P "127.0.0.1:1084" -P "127.0.0.1:1085" -P "127.0.0.1:1086" -P "127.0.0.1:1087" --daemon 2019/08/27 17:07:32 err : unknown long flag '--lb-method' 1. system is : Linux <!--- Provide a general summary of the issue in the Title above --> I'm trying to use it for proper load balancing of socks5 servers(v2ray client side is working as socks5) with full support of UDP commands as i need them. Else i could use any TCP load balancer. I hope this can be solved easily enough on your side (as i think there is just a bit of code missing). ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Possible Implementation <!--- Not obligatory, but suggest an idea for implementing addition or change -->
kerem closed this issue 2026-02-27 23:16:05 +03:00
Author
Owner

@snail007 commented on GitHub (Aug 28, 2019):

--lb-method only for commercial edition

<!-- gh-comment-id:525551271 --> @snail007 commented on GitHub (Aug 28, 2019): --lb-method only for commercial edition
Author
Owner

@PtDragon commented on GitHub (Aug 28, 2019):

So if i buy commercial edition it should do load balancing well?
Because for now on free edition it does not balance, just uses first server it finds(and also eats tons of CPU compared to gobetween).
If commercial edition is necessary could you help me to buy it(i don't know where to pay for it and could not even read differences between editions as i do not know Chinese)?

<!-- gh-comment-id:525586982 --> @PtDragon commented on GitHub (Aug 28, 2019): So if i buy commercial edition it should do load balancing well? Because for now on free edition it does not balance, just uses first server it finds(and also eats tons of CPU compared to gobetween). If commercial edition is necessary could you help me to buy it(i don't know where to pay for it and could not even read differences between editions as i do not know Chinese)?
Author
Owner

@snail007 commented on GitHub (Aug 28, 2019):

details here : https://snail007.github.io/goproxy/page/free_vs_commercial_en/

<!-- gh-comment-id:525616884 --> @snail007 commented on GitHub (Aug 28, 2019): details here : https://snail007.github.io/goproxy/page/free_vs_commercial_en/
Author
Owner

@PtDragon commented on GitHub (Aug 28, 2019):

Thanks! I see now why it does not balance.
The only thing i don't understand yet is how to pay for it (on authorization website there is no button to buy).
Should i mail you directly to choose a payment method?
I do not have any cryptocurrencies, but i have a visa card.

<!-- gh-comment-id:525631547 --> @PtDragon commented on GitHub (Aug 28, 2019): Thanks! I see now why it does not balance. The only thing i don't understand yet is how to pay for it (on authorization website there is no button to buy). Should i mail you directly to choose a payment method? I do not have any cryptocurrencies, but i have a visa card.
Author
Owner

@snail007 commented on GitHub (Aug 28, 2019):

don't hurry, let us resolve the CPU issue firstly, for convenience you can add my telegram : arraykeys .

<!-- gh-comment-id:525692851 --> @snail007 commented on GitHub (Aug 28, 2019): don't hurry, let us resolve the CPU issue firstly, for convenience you can add my telegram : arraykeys .
Author
Owner

@PtDragon commented on GitHub (Aug 28, 2019):

Sadly i cannot use Telegram(used it only to download kernel for my phone but got banned suddenly).
But i have a gmail too and if it can be convenient we can use hangouts chat or mails.

<!-- gh-comment-id:525695718 --> @PtDragon commented on GitHub (Aug 28, 2019): Sadly i cannot use Telegram(used it only to download kernel for my phone but got banned suddenly). But i have a gmail too and if it can be convenient we can use hangouts chat or mails.
Author
Owner

@snail007 commented on GitHub (Aug 28, 2019):

my hangouts account is arraykeys@gmail.com , we can use hangouts chat.

<!-- gh-comment-id:525716725 --> @snail007 commented on GitHub (Aug 28, 2019): my hangouts account is arraykeys@gmail.com , we can use hangouts chat.
Author
Owner

@PtDragon commented on GitHub (Sep 8, 2019):

I tried to contact you on Hangouts but didn't receive an answer.
Where can i see price?
Is it possible to buy with Visa or Masercard?

<!-- gh-comment-id:529172728 --> @PtDragon commented on GitHub (Sep 8, 2019): I tried to contact you on Hangouts but didn't receive an answer. Where can i see price? Is it possible to buy with Visa or Masercard?
Author
Owner

@snail007 commented on GitHub (Sep 8, 2019):

email to me please, arraykeys@gmail.com, i didn't received any chat request in Google hangouts, maybe something wrong?

<!-- gh-comment-id:529174616 --> @snail007 commented on GitHub (Sep 8, 2019): email to me please, arraykeys@gmail.com, i didn't received any chat request in Google hangouts, maybe something wrong?
Author
Owner

@PtDragon commented on GitHub (Sep 8, 2019):

email sent

<!-- gh-comment-id:529182352 --> @PtDragon commented on GitHub (Sep 8, 2019): email sent
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#229
No description provided.