tgfilestream icon indicating copy to clipboard operation
tgfilestream copied to clipboard

How to add connection limit per link

Open FelinaHD opened this issue 5 years ago • 1 comments

Hi, i need to add connection limit per each link, can i do this with TGFileStream? (also connection limit per IP doesn't work for me btw, I can download with 32 connections even if I set limitations)

FelinaHD avatar Jan 15 '20 18:01 FelinaHD

@FelinaHD The 32 connections you're using are the connections between your device and your hosting server, not the connection between your hosting server and Telegram.

What i mean is, The CONNECTION_LIMIT env variable is for limiting the number of connections your hosting server will use to connect to Telegram servers. If you are talking about the REQUEST_LIMIT var, it simply means the maximum amount of files the host server can download at the same time.

pseudokawaii avatar Oct 24 '20 01:10 pseudokawaii