Skip to content

Commit

Permalink
Set the default response chunk size to 512KB (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Feb 11, 2022
1 parent 3cb0238 commit 4701845
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cowmachine_response.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%% @author Justin Sheehy <justin@basho.com>
%% @author Andy Gross <andy@basho.com>
%% @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");
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4701845

Please sign in to comment.