cloudflare zerotrust - does it buffer requests?

Hey guys, im using cloudflare zerotrust tunnels through all of my application, one core of my app is uploading files, my backend on start of receiving http request creates a process that indicates that files is being uploaded, but the problem i see is that between sending request from frontend until backend receives first parts of information respectfully long time is passing as if cloudflare buffers whole request data, can somebody confirm or deny that?
5 Replies
Rekseto
ReksetoOP9mo ago
I do have paid plan on CF if that makes a difference and im aware of upload 100MB limit, which is not problem because i do split my files into chunks, and im thinking even to always split to chunks up to 5-10MB if that would decrease the time that it takes from sending on frontend to receiving first informations on backend
Chaika
Chaika9mo ago
Yes, Cloudflare buffers the entire request to prevent certain attacks (like slowloris), and there's no way to disable it (I think Enterprise might be able to, not 100% sure, but certainly no plan under can) That's also one of the reasons why the upload limit exists, need to buffer the entire 100mb into memory on edge That's not a Zero Trust Exclusive thing or anything, just a general proxy thing
Rekseto
ReksetoOP9mo ago
yea, like i thought so so chunking into small files could help
Chaika
Chaika9mo ago
That's one way to get around it. It's been my experience in the past too that tunnels/cloudflared can sometimes struggle with huge uploads as well
Rekseto
ReksetoOP9mo ago
yea, big files around 80MB can result in 524 HTTP response
Want results from more Discord servers?
Add your server