Comments (6)
Hi, I have CLIENT_KEEPALIVE parameter for this purpose. It is 30 minutes by default, but it can be set to any value in the config file
from mtprotoproxy.
Keepalive is another thing. Let's imagine that client wrote only 32 bytes and does nothing after that. I mean, it just not sending any data further (evil client). The connection is alive, keepalive is working. The client just does not send more bytes. In that case, the proxy will wait forever. A fleet of such clients is enough to exhaust all open file descriptors and crash proxy.
from mtprotoproxy.
The handshake timeouts are implemented: d2ff0f6
from mtprotoproxy.
Greate project, can you help me. How to check that proxy is MTProxy and alive on python3?
Интересный проект. Подскажите как проверить что прокси именно mtproto на python3? Просто есть канал, бот автоматом проверять сокет, но стали подсовывать другие сервисы ip:port
from mtprotoproxy.
To check that proxy is alive on python3 you can just try to connect on the proxy port with these commands:
import socket
s = socket.socket()
s.connect(("1.2.3.4", 3255))
where "1.2.3.4" is your ip to check
from mtprotoproxy.
I see that discussion goes in absolutely another direction and it was actually implemented so I'll close this ticket if nobody minds.
from mtprotoproxy.
Related Issues (20)
- How to set limit total bandwidth usage per secret
- Ydh
- proxy
- unknown rpc ans type: b'\xdf\xa20W' HOT 1
- MTProxy Admin Bot dont accept my secret cause python script make it more than 32 hex. Please, help!
- . HOT 2
- .
- . HOT 1
- When open telegam app , it takes too long time wait for connecting to the proxy HOT 2
- Proxy works on Telegram Desktop (Windows) but not on Android Telegram
- Error in source code
- Does MTProto allow to route all a device internet traffic to the proxy? Like a VPN? HOT 1
- .
- IPV6 dont work when i add users
- IP white list method - amazon changer & checker - local server tunnel
- Installing Python MTProxy on CentOS 8 with Python update HOT 5
- port change doesnt work in config.py HOT 1
- Dokerfile for debian 12 HOT 1
- ERROR: Service 'mtprotoproxy' failed to build: The command '/bin/sh -c apt-get update && apt-get install --no-install-recommends -y python3 python3-uvloop python3-cryptography python3-socks libcap2-bin ca-certificates && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100 HOT 3
- It only works for a few minutes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtprotoproxy.