mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 04:10:24 +00:00
Use active,N
This reduces the number of times we need to ask for more packets, and as a result we get a fairly large boost in performance, especially with HTTP/1.1. Unfortunately this makes Cowboy require at least Erlang/OTP 21.3+ because the ssl application did not have active,N. For simplicity the version required will be Erlang/OTP 22+. In addition this change improves hibernate handling in cowboy_websocket. Hibernate will now work for HTTP/2 transport as well, and stray or unrelated messages will no longer cancel hibernate (the process will handle the message and go back into hibernation). Thanks go to Stressgrid for benchmarking an early version of this commit: https://stressgrid.com/blog/cowboy_performance_part_2/
This commit is contained in:
parent
592029070d
commit
db0d6f8d25
9 changed files with 208 additions and 65 deletions
4
Makefile
4
Makefile
|
@ -29,10 +29,10 @@ dep_gun = git https://github.com/ninenines/gun master
|
|||
dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
|
||||
DEP_EARLY_PLUGINS = ci.erlang.mk
|
||||
|
||||
AUTO_CI_OTP ?= OTP-LATEST-20+
|
||||
AUTO_CI_OTP ?= OTP-LATEST-22+
|
||||
AUTO_CI_HIPE ?= OTP-LATEST
|
||||
# AUTO_CI_ERLLVM ?= OTP-LATEST
|
||||
AUTO_CI_WINDOWS ?= OTP-LATEST-20+
|
||||
AUTO_CI_WINDOWS ?= OTP-LATEST-22+
|
||||
|
||||
# Standard targets.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue