diff options
author | Lukas Larsson <[email protected]> | 2016-03-29 16:00:50 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-03-29 16:00:50 +0200 |
commit | 2c2b8c082c9e60362fc46a46c06be5b1ff95a910 (patch) | |
tree | 6e161a4f59e314a8a8447cbb3034259c780a781a /lib/kernel/src/file.erl | |
parent | 3f190b62031783ad4fc9bb1fb91703a1b1b40ad7 (diff) | |
parent | c93cfa534aea23aaae148dfe414fd82d8f6afda0 (diff) | |
download | otp-2c2b8c082c9e60362fc46a46c06be5b1ff95a910.tar.gz otp-2c2b8c082c9e60362fc46a46c06be5b1ff95a910.tar.bz2 otp-2c2b8c082c9e60362fc46a46c06be5b1ff95a910.zip |
Merge branch 'lukas/kernel/sendfile_fallback_chunksize_adj/OTP-13444'
* lukas/kernel/sendfile_fallback_chunksize_adj/OTP-13444:
kernel: Reduce sendfile fallback chunk size
Diffstat (limited to 'lib/kernel/src/file.erl')
-rw-r--r-- | lib/kernel/src/file.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index 1007f04413..1076e02422 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -1227,7 +1227,8 @@ change_time(Name, {{AY, AM, AD}, {AH, AMin, ASec}}=Atime, %% Send data using sendfile %% --define(MAX_CHUNK_SIZE, (1 bsl 20)*20). %% 20 MB, has to fit in primary memory +%% 1 MB, Windows seems to behave badly if it is much larger then this +-define(MAX_CHUNK_SIZE, (1 bsl 20)). -spec sendfile(RawFile, Socket, Offset, Bytes, Opts) -> {'ok', non_neg_integer()} | {'error', inet:posix() | |