From e8aae688c3fa622dca171c77caed69732e14ede2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 Nov 2019 21:57:31 +0100 Subject: stream: bump default buffer size from 2K to 64K (Only half of the buffer is actually used in a useful way, see manpage or commit which added the option.) Might have some advantages with broken network filesystem drivers. See: #6802 --- DOCS/man/options.rst | 2 +- stream/stream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 3ae3264969..fed5d9de56 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4197,7 +4197,7 @@ Cache Currently, this is used for ``--cache-on-disk`` only. ``--stream-buffer-size=`` - Size of the low level stream byte buffer (default: 4KB). This is used as + Size of the low level stream byte buffer (default: 128KB). This is used as buffer between demuxer and low level I/O (e.g. sockets). Generally, this can be very small, and the main purpose is similar to the internal buffer FILE in the C standard library will have. diff --git a/stream/stream.c b/stream/stream.c index 089b7c3693..136050c265 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -113,7 +113,7 @@ const struct m_sub_options stream_conf = { }, .size = sizeof(struct stream_opts), .defaults = &(const struct stream_opts){ - .buffer_size = STREAM_MIN_BUFFER_SIZE, + .buffer_size = 128 * 1024, }, }; -- cgit v1.2.3