TelegramMessenger / MTProxy

5.01k stars 830 forks source link

[Important] Established connections don't close #343

Closed hookzof closed 5 years ago

hookzof commented 5 years ago

Using the command netstat -anp | grep :443 | grep ESTAB | wc -l you can see that the established connections grow even at night, which should not happen. There are suggestions that this may be due to the peculiarities of DPI of different countries.

Measurements are taken every 3 hours.

root@stab:~# netstat -anp | grep :443 | grep ESTAB | wc -l
68472
root@stab:~# netstat -anp | grep :443 | grep ESTAB | wc -l
97860
root@stab:~# netstat -anp | grep :443 | grep ESTAB | wc -l
126076

py6i6j

Only Fake TLS is used.

kmurachev commented 5 years ago

This command gives me the following:

# netstat -anp | grep :443 | grep ESTAB | wc -l
10

despite the fact that only six devices connect to my proxy (four of them are one account)

hookzof commented 5 years ago

I forgot to note that the proxy is public.

kmurachev commented 5 years ago

I forgot to note that the proxy is public.

this is noticeable based on the number of connections)

hookzof commented 5 years ago

Possible fix https://github.com/TelegramMessenger/MTProxy/commit/b93e44b8616346d9c278bcc214c7a7671e8883a6