From 6487abde79684ace6e24a127d1f62febf40f0d9b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2019 16:04:22 +0100 Subject: 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. --- stream/stream.h | 1 - 1 file changed, 1 deletion(-) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index 55db9c1314..8b36d137a7 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -120,7 +120,6 @@ typedef struct stream { // Close void (*close)(struct stream *s); - int read_chunk; // maximum amount of data to read at once to limit latency int64_t pos; int eof; int mode; //STREAM_READ or STREAM_WRITE -- cgit v1.2.3