Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 21561200D0B for ; Tue, 12 Sep 2017 18:26:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1FABD1609CA; Tue, 12 Sep 2017 16:26:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E4AC1609C9 for ; Tue, 12 Sep 2017 18:26:51 +0200 (CEST) Received: (qmail 5338 invoked by uid 500); 12 Sep 2017 16:26:38 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 5247 invoked by uid 99); 12 Sep 2017 16:26:38 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 16:26:38 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id E2E383A0256 for ; Tue, 12 Sep 2017 16:26:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1808130 - /httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en Date: Tue, 12 Sep 2017 16:26:37 -0000 To: cvs@httpd.apache.org From: elukey@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170912162637.E2E383A0256@svn01-us-west.apache.org> archived-at: Tue, 12 Sep 2017 16:26:52 -0000 Author: elukey Date: Tue Sep 12 16:26:37 2017 New Revision: 1808130 URL: http://svn.apache.org/viewvc?rev=1808130&view=rev Log: Documentation rebuild Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en?rev=1808130&r1=1808129&r2=1808130&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en Tue Sep 12 16:26:37 2017 @@ -106,6 +106,21 @@

PHP-FPM with UDS

ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"
+

The following example forces the module to flush every chunk of data received + from the FCGI backend as soon as it receives it, without buffering.

+

Force flush of FCGI data without buffering

ProxyPassMatch "^/myapp/.*\.php(/.*)?$" "fcgi://localhost:9000/var/www/" enablereuse=on flushpackets=on
+
+ +

The following example is related to the previous one with a difference: the module waits/polls + for a fixed amount of time before flushing (buffering data from the FCGI backend). + This method is useful when the FCGI backend emits data in short bursts, since + forcing a flush would result inefficient and expensive for performances. Please note + that this setting might not be the best one in use cases when outgoing data chunks + from the FCGI application are blocked waiting on incoming chunks from the client. +

+

Force flush of FCGI data buffering for 20ms

ProxyPassMatch "^/myapp/.*\.php(/.*)?$" "fcgi://localhost:9000/var/www/" flushpackets=on flushwait=20
+
+

The balanced gateway needs mod_proxy_balancer and at least one load balancer algorithm module, such as mod_lbmethod_byrequests, in addition to the proxy