We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 844d864 + 5a8c6ac commit 2267558Copy full SHA for 2267558
test-services/entrypoint.sh
@@ -2,4 +2,10 @@
2
3
PORT=${PORT:-"9080"}
4
5
+if [ -n "$MAX_CONCURRENT_STREAMS" ]; then
6
+ # respect the MAX_CONCURRENT_STREAMS environment variable
7
+ awk 'BEGIN { FS=OFS="=" } $1=="h2_max_concurrent_streams " {$2=" '$MAX_CONCURRENT_STREAMS'"} {print}' hypercorn-config.toml > hypercorn-config.toml.new
8
+ mv hypercorn-config.toml.new hypercorn-config.toml
9
+fi
10
+
11
python3 -m hypercorn testservices:app --config hypercorn-config.toml --bind "0.0.0.0:${PORT}"
0 commit comments