mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-09 16:36:29 +00:00
fix: uwsgi closed connection
This commit is contained in:
parent
2959e6eec2
commit
47873acec2
@ -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).
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user