True, LFS uses a simple http receive. It constantly calls recv every time there is something to receive, which I supposed should be enough. It also supports resume after lost connection, etc.
I'm not sure but think cloudflare requires https connection which isn't really easy to implement, especially in old LFS (the current public one) which uses an old compiler.
But simple http(s) connections direct to our site work fine, don't they? What about viewing attachments on the forum. Does an image take minutes to appear if you are in Australia? I assume not, and that's not currently going through cloudflare or using i3d's content delivery network (that is used for big downloads or patches).
So what I'd like to understand is, for people in China / Australia / India, why does it take several minutes to download a mod that takes 2 seconds if you are in Western Europe? But doesn't take ages to view a forum attachment?
I can't see how my code can be wrong if all it does is call recv when there is data to receive. It uses an adequate size buffer of 65536 bytes which should be fine.