path: root/stream/stream_file.c
diff options
authorwm4 <wm4@nowhere>2019-11-07 16:04:22 +0100
committerwm4 <wm4@nowhere>2019-11-07 22:53:13 +0100
commit6487abde79684ace6e24a127d1f62febf40f0d9b (patch)
tree1b511ae0ca89a244c2a3a3b49760b4ca834064f3 /stream/stream_file.c
parente5a9b792ecf08ddbcf3b674de3a00f7a919d1858 (diff)
stream: remove unused read_chunk field
It was set, but its value was never used. The stream cache used to use it, but it was removed. It controlled how much data it tried to read from the underlying stream at once. The user can now control the buffer size with --stream-buffer-size, which achieves a similar effect, because the stream will in the common case read half of the buffer size at once. In fact, the new default size is 128KB, i.e. 64KB read size, which is as much as stream_file and stream_cb requested by default. stream_memory requested more, but it doesn't matter anyway. Only stream_smb set a larger size with 128KB.
Diffstat (limited to 'stream/stream_file.c')
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index 5d9bfd66b3..1ad9a5c7f5 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -329,7 +329,6 @@ static int open_f(stream_t *stream)
stream->fill_buffer = fill_buffer;
stream->write_buffer = write_buffer;
stream->get_size = get_size;
- stream->read_chunk = 64 * 1024;
stream->close = s_close;
if (check_stream_network(p->fd))