aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-29 17:31:48 -0700
committerredmatrix <git@macgirvin.com>2016-06-29 17:31:48 -0700
commit2e93a09d83f16f12796ff4edc1aca09339ae2ccf (patch)
tree3032841e4c6ff960b7cb559a1e7db87fecc5cfc8 /include/attach.php
parent05aba0b4dd9ce5798e2c8bb57900b03ae96a233e (diff)
downloadvolse-hubzilla-2e93a09d83f16f12796ff4edc1aca09339ae2ccf.tar.gz
volse-hubzilla-2e93a09d83f16f12796ff4edc1aca09339ae2ccf.tar.bz2
volse-hubzilla-2e93a09d83f16f12796ff4edc1aca09339ae2ccf.zip
stream large photos through buffered I/O if possible
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index dbcb0f930..b3ddfee88 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1468,7 +1468,7 @@ function find_filename_by_hash($channel_id, $attachHash) {
function pipe_streams($in, $out) {
$size = 0;
while (!feof($in))
- $size += fwrite($out, fread($in, 8192));
+ $size += fwrite($out, fread($in, 16384));
return $size;
}