Skip to content

Commit

Permalink
Add workaround for Granian HTTP/2 bug (1.15) (#2936)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klopper <[email protected]>
  • Loading branch information
dekkers and underdarknl authored May 13, 2024
1 parent 06ea42c commit 7787c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rocky/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ RUN export SECRET_KEY="secret" BYTES_API="http://bytes:8000" BYTES_PASSWORD="pas

USER rocky

# Workaround for https://github.com/emmett-framework/granian/issues/287
ENV GRANIAN_HTTP=1

CMD ["granian", "--interface", "wsgi", "rocky.wsgi:application", "--host", "0.0.0.0"]
2 changes: 2 additions & 0 deletions rocky/packaging/deb/data/usr/lib/kat/rocky.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ BYTES_API=http://localhost:8002
STATIC_ROOT=/usr/share/kat-rocky/static
GRANIAN_WORKERS=2
GRANIAN_THREADS=4
# Workaround for https://github.com/emmett-framework/granian/issues/287
GRANIAN_HTTP=1

0 comments on commit 7787c98

Please sign in to comment.