NGINX和php_fpmstream媒体文件需要传输三倍?
我的设置: – nginx 1.0.6(从头编译) – php 5.3.8与php-fpm(也从头开始)。 我使用这个PHP脚本将文件从远程站点传送给我的用户: $chunksize = 1 * (1024 * 1024); //you may want to change this $bytes_send = 0; if ($file = fopen($file, 'rb',false)) { while(!feof($file) && (!connection_aborted()) && ($bytes_send<$new_length)) { $buffer = fread($file, $chunksize); echo ($buffer); flush(); $bytes_send += strlen($buffer); } fclose($file); } else { die('Error – can not […]