-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the default response chunk size to 512KB (#32)
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%% @author Justin Sheehy <[email protected]> | ||
%% @author Andy Gross <[email protected]> | ||
%% @copyright 2007-2009 Basho Technologies, 2018-2021 Marc Worrell | ||
%% @copyright 2007-2009 Basho Technologies, 2018-2022 Marc Worrell | ||
%% Based on mochiweb_request.erl, which is Copyright 2007 Mochi Media, Inc. | ||
%% | ||
%% Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
@@ -33,8 +33,7 @@ | |
send_stream_body/2 | ||
]). | ||
|
||
-define(IDLE_TIMEOUT, infinity). | ||
-define(FILE_CHUNK_LENGTH, 16#1FFF). | ||
-define(FILE_CHUNK_LENGTH, 16#80000). % 512KB | ||
|
||
server_header() -> | ||
case application:get_env(cowmachine, server_header) of | ||
|