If you need to have the complete response sent within 60 seconds, the first thing I'd do were to stop using CGI.
CGI has nothing to do with that. It's my computations.
If you have to just send something within 60 seconds, immediately print out some reply (let's assume 200 OK is good), and keep printing bogus headers until you have the response ready.
This I think is what I probably need. Could you give me an example. Say, there is a loop where I do some computations.
How can I push something back to the client in every iteration?
What do you mean by printing bogus headers?