# HG changeset patch # User yoneda # Date 1249127129 -32400 # Node ID 01079b81f1250151e81bdae617402243132184f6 # Parent f40b6cc4c5873e6ae7c31efc5cc4682f407ba145 modified: sendstream.php diff -r f40b6cc4c587 -r 01079b81f125 sendstream.php --- a/sendstream.php Sat Aug 01 18:35:11 2009 +0900 +++ b/sendstream.php Sat Aug 01 20:45:29 2009 +0900 @@ -38,16 +38,14 @@ do { $start = microtime(true); if( feof( $fp ) ) break; - echo fread( $fp, 6292 ); - - usleep( 2000 - (int)((microtime(true) - $start) * 1000) ); + @usleep( 2000 - (int)((microtime(true) - $start) * 1000 * 1000)); } - while( ! connection_aborted() ); + while( connection_aborted() == 0 ); } fclose($fp); } catch(exception $e ) { exit( $e->getMessage() ); } -?> \ No newline at end of file +?>