diff --git a/source/eventcore/drivers/threadedfile.d b/source/eventcore/drivers/threadedfile.d index f9dd6c4..485fd83 100644 --- a/source/eventcore/drivers/threadedfile.d +++ b/source/eventcore/drivers/threadedfile.d @@ -399,7 +399,7 @@ log("trigger event"); if (bytes.length == 0) safeAtomicStore(f.ioStatus, IOStatus.ok); while (bytes.length > 0) { - auto sz = min(bytes.length, 4096); + auto sz = min(bytes.length, 512*1024); auto ret = () @trusted { return mixin("."~op)(cast(int)file, bytes.ptr, cast(uint)sz); } (); if (ret != sz) { safeAtomicStore(f.ioStatus, IOStatus.error);