Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.305
diff -u -p -r1.305 bootstrap.inc
--- includes/bootstrap.inc	19 Sep 2009 10:38:47 -0000	1.305
+++ includes/bootstrap.inc	21 Sep 2009 02:47:07 -0000
@@ -990,6 +990,7 @@ function drupal_page_header() {
     'Last-Modified' => gmdate(DATE_RFC1123, REQUEST_TIME),
     'Cache-Control' => 'no-cache, must-revalidate, post-check=0, pre-check=0',
     'ETag' => '"' . REQUEST_TIME . '"',
+    'Connection' => 'close',
   );
   drupal_send_headers($default_headers);
 }
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.992
diff -u -p -r1.992 common.inc
--- includes/common.inc	18 Sep 2009 10:54:20 -0000	1.992
+++ includes/common.inc	21 Sep 2009 02:47:07 -0000
@@ -2401,11 +2401,14 @@ function drupal_page_footer() {
     drupal_serve_page_from_cache($cache);
   }
   else {
-    ob_flush();
+    drupal_set_header('Content-Length', ob_get_length());
+    ob_end_flush();
+    flush();
   }
 
   _registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE);
   drupal_cache_system_paths();
+  drupal_cron_run();
 }
 
 /**
@@ -3867,6 +3870,11 @@ function drupal_cron_run() {
     variable_set('cron_last', REQUEST_TIME);
     watchdog('cron', 'Cron run completed.', array(), WATCHDOG_NOTICE);
 
+    for ($i = 1; $i < 10; $i++) {
+      sleep(1);
+      syslog(LOG_NOTICE, "Running cron for $i seconds.");
+    }
+
     // Release cron semaphore
     variable_del('cron_semaphore');
 
