TelegramMessenger / MTProxy

5.01k stars 830 forks source link

max-special-connections not working #365

Open Daniyal-Javani opened 4 years ago

Daniyal-Javani commented 4 years ago

When I set it to 3 like this:

./mtproto-proxy -u nobody -p 8888 -H ***** -S ********* --aes-pwd proxy-secret proxy-multi.conf -M 1 --max-special-connections=3 --verbosity

only 2 devices can connect and these two devices cannot download anything. If I'm wrong, how can I limit connections to server to only 3 users?

Eninspace commented 4 years ago

Use more values, sometimes one my device used 2-4 special connections

Eninspace commented 4 years ago

I think it show amount opened TCP sockets

Daniyal-Javani commented 4 years ago

@Eninspace So what if I want exactly 3 connections, not more?

HirbodBehnam commented 4 years ago

Hello I think each telegram client opens upto 8 connections with 5 or 6 on average. If you want to limit the number of users, just multiply the number of them in 8. For example if you want to limit for 3 users, use 18.