Selaa lähdekoodia

Add test for #1046

bel2125 3 vuotta sitten
vanhempi
commit
1b7a69a094
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      test/flush.php

+ 11 - 0
test/flush.php

@@ -0,0 +1,11 @@
+<?php
+set_time_limit(20);
+header('Content-Type: text/plain; charset=utf-8');
+echo "CivetWeb Auto Flush Test\n";
+for($i = 0; $i <10; $i++) {
+	echo "Auto flush $i\n";
+	@ob_flush();@flush();
+	sleep(1);
+}
+echo "\nCurrently this test fails, only the first FLUSH is processed by the server.\n";
+?>