mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_proxy: Add ap_connection_reusable() for checking if a connection
is reusable as of this point in processing. mod_proxy_fcgi uses the new API to determine if FCGI_CONN_CLOSE should be enabled, but that doesn't change existing behavior since the connection is currently marked for closure elsewhere in the module. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1526189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -193,7 +193,9 @@ static apr_status_t send_begin_request(proxy_conn_rec *conn,
|
||||
ap_fcgi_fill_in_header(&header, AP_FCGI_BEGIN_REQUEST, request_id,
|
||||
sizeof(abrb), 0);
|
||||
|
||||
ap_fcgi_fill_in_request_body(&brb, AP_FCGI_RESPONDER, AP_FCGI_KEEP_CONN);
|
||||
ap_fcgi_fill_in_request_body(&brb, AP_FCGI_RESPONDER,
|
||||
ap_proxy_connection_reusable(conn)
|
||||
? AP_FCGI_KEEP_CONN : 0);
|
||||
|
||||
ap_fcgi_header_to_array(&header, farray);
|
||||
ap_fcgi_begin_request_body_to_array(&brb, abrb);
|
||||
|
Reference in New Issue
Block a user