]> 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>
Wed, 30 Dec 2009 00:10:35 +0000 (01:10 +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.

doc/configuration.txt
src/cfgparse.c

index e69aa7c9e65efd23e1abff076ef5cba32fc60afa..5a31e855ee374b31e87791cb5018e98c44dd43eb 100644 (file)
@@ -755,7 +755,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
@@ -2383,7 +2383,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 fd338f723f18b50cb5cd78be294cf63384d498d8..7b344c81089cef93faa5dddec349055cd9ea177d 100644 (file)
@@ -111,7 +111,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 },