Skip to content

Commit

Permalink
fix: uwsgi closed connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 authored Sep 23, 2024
1 parent 2959e6e commit 47873ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Improvement] Fixes an issue which caused 502 errors by a premature closed connection by uwsgi, it also improves the handling of SIGTERM in docker and other uwsgi improvements (by @Ian2012).
13 changes: 13 additions & 0 deletions tutor/templates/build/openedx/settings/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ processes = $(UWSGI_WORKERS)
thunder-lock = true
single-interpreter = true
enable-threads = true
# Fix 502 errors for closed connections
http-keepalive = 1
add-header = Connection: Keep-Alive
# Better startup/shutdown in docker:
die-on-term = true
lazy-apps = false
need-app = true
no-defer-accept = true
# Enable the master process for performance
master = true
# Clean up settings
py-call-osafterfork = true
vacuum = true

0 comments on commit 47873ac

Please sign in to comment.