Page 1 of 1

Working around Cloudflare 100 second timeout?

Posted: Thu Aug 20, 2026 8:18 am
by DavidLee82
Hi all,

This has been bothering me for ages. Occasionally we would have reports that takes ages (>2 minutes) to generate. On our local testing the report comes out okay after the long processing. However on sending to Production the report will more than often end up showing a Cloudflare 524 error instead of completing.

I am told that Cloudflare limits HTTP requests to 100 seconds. The reports takes 3-4 minutes to execute due to the sheer size of the dataset.

Does Stimulsoft have a method to work around the limit? For example, fire the job, close the connection and display a wait screen, then wait for the server to call back with a completed report?

Re: Working around Cloudflare 100 second timeout?

Posted: Thu Aug 20, 2026 10:43 am
by Lech Kulikowski
Hello,

You can offload the generation of such heavy reports to the server side.
- Your own lightweight endpoint starts a background task: it loads the .mrt, sets the data sources/variables, and calls report.Render() - this happens outside the request thread, so nothing is left hanging behind Cloudflare while rendering is in progress.
- Once complete, report.SaveDocument() ьуерщв is called, or the report is exported - this saves the actual rendered result, not the template.
- The frontend polls a small status endpoint until the task status becomes "ready".
- When the result is ready, instead of loading the original report (which would trigger a full re-render), you pass the already rendered document to the viewer - report.LoadDocument(). Since it is already rendered, this call returns quickly - the open connection is no longer left hanging.

Thank you.

Re: Working around Cloudflare 100 second timeout?

Posted: Fri Aug 21, 2026 3:33 am
by DavidLee82
Noted with thanks.

Re: Working around Cloudflare 100 second timeout?

Posted: Fri Aug 21, 2026 7:27 am
by Lech Kulikowski
Hello,

You are welcome.