BUG/MEDIUM: server: resolve state file handle leak on reload
authorIlya Shipitsin <chipitsine@gmail.com>
Wed, 15 Jul 2020 21:02:40 +0000 (02:02 +0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Jul 2020 08:29:29 +0000 (10:29 +0200)
commitc46d52fe469d0d2d202ebc431a3a452c818ec71e
treebb0d4a4ba07ecc6fee8e1ab93f44b7c5699d700b
parentbdbc0db09582eac2d1c71eca1088e0ef598d6ef2
BUG/MEDIUM: server: resolve state file handle leak on reload

During reload, server state file is read and file handle is not released
this was indepently reported in #738 and #660.

partially resolves #660. This should be backported to 2.2 and 2.1.

(cherry picked from commit dc6e8a9a7b19052b8fd8ab7f9a84a4a95b4a6d5b)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit d74774bca53a2f4c30995d01eeb028dde313fc29)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c