Giter VIP home page Giter VIP logo

Comments (6)

alexbers avatar alexbers commented on June 8, 2024

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.

9seconds avatar 9seconds commented on June 8, 2024

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.

alexbers avatar alexbers commented on June 8, 2024

The handshake timeouts are implemented: d2ff0f6

from mtprotoproxy.

CraftedCat avatar CraftedCat commented on June 8, 2024

Greate project, can you help me. How to check that proxy is MTProxy and alive on python3?
Интересный проект. Подскажите как проверить что прокси именно mtproto на python3? Просто есть канал, бот автоматом проверять сокет, но стали подсовывать другие сервисы ip:port

from mtprotoproxy.

alexbers avatar alexbers commented on June 8, 2024

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.

9seconds avatar 9seconds commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.