aboutsummaryrefslogtreecommitdiffstats
path: root/rebar.config
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-02 14:48:28 +0200
committerLoïc Hoguin <[email protected]>2019-09-05 14:07:38 +0200
commit48f417ac8f3d00039e2dc674e312d982336dcfea (patch)
tree232092a3fcbe0364a92c10f074faccdaf389c6da /rebar.config
parentaedf6379cc769ce2be1e040de3fe631e6539f442 (diff)
downloadcowboy-48f417ac8f3d00039e2dc674e312d982336dcfea.tar.gz
cowboy-48f417ac8f3d00039e2dc674e312d982336dcfea.tar.bz2
cowboy-48f417ac8f3d00039e2dc674e312d982336dcfea.zip
Fix and optimize sending of WINDOW_UPDATE frames
For long-running connections it was possible for the connection window to become larger than allowed by the protocol because the window increases claimed by stream handlers were never reclaimed even if no data was consumed. The new code applies heuristics to fix this and reduce the number of WINDOW_UPDATE frames that are sent. It includes six new options to control that behavior: margin, max and threshold for both the connection and stream windows. The margin is some extra space added on top of the requested read size. The max is the maximum window size at any given time. The threshold is a minimum window size that must be reached before we even consider sending more WINDOW_UPDATE frames. We also avoid sending WINDOW_UPDATE frames when there is already enough space in the window, or when the read size is 0. Cowlib is set to master until a new tag is done.
Diffstat (limited to 'rebar.config')
-rw-r--r--rebar.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/rebar.config b/rebar.config
index bb6e0ef..cb76748 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,4 +1,4 @@
{deps, [
-{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.7.3"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.7.1"}}
+{cowlib,".*",{git,"https://github.com/ninenines/cowlib","master"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.7.1"}}
]}.
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,warn_missing_spec,warn_untyped_record]}.