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.
}
out_load_server_state_in_tree:
+ if (f) {
+ fclose(f);
+ f = NULL;
+ }
+
/* parse all proxies and load states form tree (global file) or from local file */
for (curproxy = proxies_list; curproxy != NULL; curproxy = curproxy->next) {
/* servers are only in backends */
/* now we can proceed with server's state update */
srv_update_state(srv, version, srv_params);
}
+
+ fileclose:
+ fclose(f);
+
}
-fileclose:
- fclose(f);
}
/* now free memory allocated for the tree */