in reply to Connection TimeOut Error
merlyn wrote Watching Long Processes Through CGI, which does what you want.