Hi Guys,
I am new to Openresty and Lua. Trying to solve problem, which sounds very simple, but already spend few days trying to find the solution.
Hoping that for somebody this would be just few lines of code to point me to the right solution.
Problem: Sometimes to wait for upstream to return page require 3+ minutes. Cloudflare return timeout.
The solution would be to return some responses every 10 seconds while waiting for upstream. This could be any messages or loader/spinner show with "echo_flush" every 10 seconds until upstream send response back.
If somebody already solved this/similar problem, please kindly provide example.
I guess it is somebody "while wait for upstream return something/some page every 10 seconds."