Commit f6656f9d authored by Olliver Schinagl's avatar Olliver Schinagl Committed by Timo Teräs

io: Handle really long lines

While commit 18b0b45b (io: Handle long lines, Thu Jan 7 17:25:23 2021
+0100) did attempt to address this issue, the buffer really is still to
small when dealing with big-big dependency lists.

Lets make it sufficiently large for now, until the new APKINDEX format
can support multi-line dependencies, making this not needed any more.

[TT: Originally the buffer size was conservative to run on resource
constrained embedded platforms. But since the available memory on those
has also increased much, the adjustment to 128kB makes sense also to
increase performance a little bit. Removing also the iolimit test.]
Signed-off-by: Olliver Schinagl's avatarOlliver Schinagl <oliver@schinagl.nl>
parent b43da45b
......@@ -32,7 +32,7 @@
#define HAVE_FGETGRENT_R
#endif
size_t apk_io_bufsize = 16*1024;
size_t apk_io_bufsize = 128*1024;
static void apk_file_meta_from_fd(int fd, struct apk_file_meta *meta)
{
......
This diff is collapsed.
@ARGS
--test-repo iolimit.repo
add test-f
@EXPECT
ERROR: Failed to open repository iolimit.repo : No buffer space available
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment