瀏覽代碼

important to exit the loop

George Baugh 1 年之前
父節點
當前提交
e18597720b
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      lib/TPSGI.pm

+ 1 - 0
lib/TPSGI.pm

@@ -741,6 +741,7 @@ sub stream_raw_http {
                 while ($out->read( my $buf, $CHUNK_SIZE )) {
                     $writer->write($buf) if $buf;
                 }
+                last;
             }
             usleep 1000;
         }