? boost-ob.patch Index: boost.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v retrieving revision 1.3.2.2.2.5.2.132 diff -u -p -r1.3.2.2.2.5.2.132 boost.module --- boost.module 4 Sep 2009 18:54:37 -0000 1.3.2.2.2.5.2.132 +++ boost.module 5 Sep 2009 01:18:29 -0000 @@ -2244,11 +2244,12 @@ function boost_crawler_run() { exit; } - // Set PHP INI Variables, try to prevent crawler from stalling. + // Try to prevent crawler from stalling. ini_set('max_execution_time', 600); - ini_set('output_buffering', 'off'); // Return html so connection closes boost_async_opp('async'); + // Turn off output buffer. + ini_set('output_buffering', 'off'); // Wait 10 seconds if first run and try again (let cron finish). if (variable_get('cron_semaphore', FALSE) == TRUE) { @@ -2394,7 +2395,9 @@ function boost_crawler_run() { */ function boost_async_opp($output) { // Prime php for background operations - ob_end_clean(); + while (ob_get_level()) { + ob_end_clean(); + } header("Connection: close"); ignore_user_abort();