Commit 60a6beb
BUG: Fix data race between configureAPI() and reloadConfigurationFile()
ConfigWatcher() issuing reloadConfigurationFile() will data race with
ConfigureAPI(), reloadConfigurationFile() doing unsafe write and
configureAPI() doing unsafe read. Patch adds global clientMutex for
safely handling client changes.1 parent d321bd8 commit 60a6beb
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
954 | 958 | | |
955 | 959 | | |
956 | 960 | | |
| 961 | + | |
| 962 | + | |
957 | 963 | | |
958 | 964 | | |
959 | 965 | | |
| |||
0 commit comments