]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] config: option forceclose is valid in frontends too
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Dec 2009 00:10:35 +0000 (01:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 22:16:35 +0000 (23:16 +0100)
This option was disabled for frontends in the configuration because
it was useless in its initial implementation, though it was still
checked in the code. Let's officially enable it now.
(cherry picked from commit a31e5dff36b0b7a3c831abae1290b9df168fdd6f)

doc/configuration.txt
src/cfgparse.c

index 18b024bc4127899bdb784059cb055c69a5817721..7ccc09c84d23333c12d8042b8c63fd8b94acb391 100644 (file)
@@ -715,7 +715,7 @@ monitor-uri                 X          X         X         -
 [no] option contstats       X          X         X         -
 [no] option dontlog-normal  X          X         X         -
 [no] option dontlognull     X          X         X         -
-[no] option forceclose      X          -         X         X
+[no] option forceclose      X          X         X         X
 option forwardfor           X          X         X         X
 option httpchk              X          -         X         X
 [no] option httpclose       X          X         X         X
@@ -2202,7 +2202,7 @@ option forceclose
 no option forceclose
   Enable or disable active connection closing after response is transferred.
   May be used in sections :   defaults | frontend | listen | backend
-                                 yes   |     no   |   yes  |   yes
+                                 yes   |    yes   |   yes  |   yes
   Arguments : none
 
   Some HTTP servers do not necessarily close the connections when they receive
index 27b890285408b536ccb19bd87adca216d228e972..dfed794d9aff3b9115ab890e6774628598c6cf26 100644 (file)
@@ -98,7 +98,7 @@ static const struct cfg_opt cfg_opts[] =
        { "clitcpka",     PR_O_TCP_CLI_KA, PR_CAP_FE, 0 },
        { "contstats",    PR_O_CONTSTATS,  PR_CAP_FE, 0 },
        { "dontlognull",  PR_O_NULLNOLOG,  PR_CAP_FE, 0 },
-       { "forceclose",   PR_O_FORCE_CLO,  PR_CAP_BE, 0 },
+       { "forceclose",   PR_O_FORCE_CLO,  PR_CAP_FE | PR_CAP_BE, 0 },
        { "http_proxy",   PR_O_HTTP_PROXY, PR_CAP_FE | PR_CAP_BE, 0 },
        { "httpclose",    PR_O_HTTP_CLOSE, PR_CAP_FE | PR_CAP_BE, 0 },
        { "keepalive",    PR_O_KEEPALIVE,  PR_CAP_NONE, 0 },