$| = 1; # keep info to browser going when it's there # Do some piece of long running stuff; this will # prevent apache from timing out the connection # but might need to be called often. $r->reset_timeout(); # At the same time check that user still cares. $r->connection->aborted() and stop_it_all(); # While in a browser nearby some clever JavaScript is # showing "Processing" "dot" "dot" "dot" and can # be dynamically fed updates by something like $r->print('
+
'); # which is going straight to the JS b/c of $|. # Probably something client side is the only way to # give decent status "progress" messaging; the # mod_perl can send approximations of how much is # left to go.