http://qs321.pair.com?node_id=314922


in reply to mod_perl, long running process and broken connections

Another possible solution (apart from using fork as recommended by other monks) could be cache. You can pre-generate an an image once per some period of time and then show it instantly to other clients. It is even possible to use a script to make the request for image generation (something along the lines of WWW::Mechanize.