1
0
Fork 0
forked from infra/ansible

httpd/koji: set MaxKeepAliveRequests 0 to fix 502 race condition

This acts as the second half of the fix for the 502 Bad Gateway errors
on long-running koji connections.

Fixes #12913

Signed-off-by: Victor Koycheff <victorkoycheff@gmail.com>
This commit is contained in:
Victor Koychev 2026-03-12 09:39:24 +02:00 committed by Kevin Fenzi
commit e56db32aa6
3 changed files with 3 additions and 2 deletions

View file

@ -87,7 +87,7 @@ KeepAlive On
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 500
MaxKeepAliveRequests 0
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the

View file

@ -3,6 +3,7 @@
#
KeepAlive On
MaxKeepAliveRequests 0
Alias /kojihub /usr/share/koji-hub/kojiapp.py

View file

@ -2,7 +2,7 @@ RewriteEngine On
RewriteRule ^/$ /koji/ [R,L]
KeepAlive On
KeepAliveTimeout 16
MaxKeepAliveRequests 500
MaxKeepAliveRequests 0
ServerLimit 2000
MaxRequestWorkers 2000