Apache2: mod_ratelimit only allowing half the speed

de flag

I'm trying to limit the file download speed in a directory

I've got the following .htaccess

<IfModule ratelimit_module>
    SetOutputFilter RATE_LIMIT
    SetEnv rate-limit 4096

But this only allows 2MB/s, on my browser and curl.

Changing rate-limit to 8000 allows 4MB/s

What could be causing this missing factor of 2?

DrDino avatar
de flag
The site's running through cloudflare for a proxy, perhaps that's causing some kind of doubling. But I'd expect it to just be client -> cloudflare -> server
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.