From 2510e6522168c5bf1c95c0effb4f2eb66d6ff5a8 Mon Sep 17 00:00:00 2001 From: Kevin Jilissen Date: Tue, 8 Oct 2024 22:21:40 +0200 Subject: [PATCH] Configure the Apache FastCGI proxy module to flush --- etc/apache.conf.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/apache.conf.in b/etc/apache.conf.in index 37c41125e8..e9d5c9fe7f 100644 --- a/etc/apache.conf.in +++ b/etc/apache.conf.in @@ -99,6 +99,17 @@ RewriteRule Makefile$ - [F] RewriteEngine Off + + # Configure the Apache FastCGI proxy module to flush chunks of data after + # 500ms even if the buffer is not full. This prevents delayed events and + # half-flushed event objects in a streaming event feed. + # Related: https://svn.apache.org/viewvc?view=revision&revision=1802040 + + ProxySet flushpackets=auto + ProxySet flushwait=500 + + + # When running a proxy or loadbalancer in front of this apache instance, # you can use these directives to trust the proxy / loadbalancer and let # this apache instance use the correct client IP. Note that if you use a