Skip to content

Handles synchronous requests and sends them asynchronously with constant rate

Notifications You must be signed in to change notification settings

SlavikMIPT/tgasyncproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncproxy

Handles synchronous requests and sends them asynchronously with constant rate

Install

cd ~
git clone https://github.com/SlavikMIPT/tgasyncproxy.git
cd tgasyncproxy
pip3 install -r requirements.txt

Server

  • --size - max queue size
  • --rps - requests per second
  • --host - host address
  • --port - port address
python3 async_proxy.py --size 1000 --rps 10 --host 127.0.0.1 --port 8081

Client

  • --id - chat id
  • --url - api url
  • --token - bot token
  • --rps - requests per second
python3 examples/client_flood.py --id 1234567 --url http://127.0.0.1:8081 --token 1234567:xxxxxxxxx --rps 100

HTTPS

Use nginx proxy

About

Handles synchronous requests and sends them asynchronously with constant rate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages