? boost-609030.1.patch
? boost-609030.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.195
diff -u -p -r1.3.2.2.2.5.2.195 boost.module
--- boost.module	18 Oct 2009 23:43:56 -0000	1.3.2.2.2.5.2.195
+++ boost.module	20 Oct 2009 01:18:38 -0000
@@ -3081,8 +3081,17 @@ function boost_crawler_run($expire = -1)
 function boost_async_opp($output, $wait = TRUE, $content_type = "text/html", $length = 0) {
   $length = ($length == 0) ? (strlen($output)-1) : $length;
   // Prime php for background operations
-  while (ob_get_level()) {
+  $loop = 0;
+
+  ob_start();
+  debug_print_backtrace();
+  $trace = ob_get_contents();
+  ob_end_clean();
+  file_put_contents('boost-backtrace.txt', $trace, FILE_APPEND);
+
+  while (ob_get_level() && $loop < 25) {
     ob_end_clean();
+    $loop++;
   }
   header("Connection: close");
   ignore_user_abort();
