commit | 3f5dd2945ccbed6b4baf23a453e9d1d071a2d835 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 24 11:11:06 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 24 11:11:06 2021 +0100 |
tree | 097464a78d32bde1ec40e32a993f86540634fc57 | |
parent | 92b887e20a995323d3fbd42d2be035733cefd6ba [diff] |
BUG/MEDIUM: cli/shutdown sessions: make it thread-safe There's no locking around the lookup of a stream nor its shutdown when issuing "shutdown sessions" over the CLI so the risk of crashing the process is particularly high. Let's use a thread_isolate() there which is suitable for this task, and there are not that many alternatives. This must be backported to 1.8.