Commit d03ddf9
committed
Fix concurrent mDNS resolution by verifying requested hostname
- libsrc/mdns/MdnsBrowser.cpp:119-170 now keeps each resolver self-contained: the resolver’s resolved signal
is handled locally (no shared isAddressResolved signal), link‑local results are ignored on the spot, and the
completion signal now carries the hostname so concurrent lookups can’t bleed into one another.
- include/mdns/MdnsBrowser.h:62-112 reflects the slimmer API—removed the unused slot/signal and updated
isFirstAddressResolved to emit both hostname and address.
- include/utils/NetUtils.h:109-146 listens for the hostname-tagged completion and ignores unrelated emissions, so
every resolveMDnsHostToAddress call exits only when its own hostname was resolved.
Courtesy of OpenAI Codex ;)
This fixes #19061 parent 6097eb6 commit d03ddf9
File tree
4 files changed
+26
-31
lines changed- include
- mdns
- utils
- libsrc/mdns
4 files changed
+26
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 119 | | |
135 | 120 | | |
136 | 121 | | |
| |||
140 | 125 | | |
141 | 126 | | |
142 | 127 | | |
143 | | - | |
144 | 128 | | |
145 | 129 | | |
146 | 130 | | |
147 | 131 | | |
148 | 132 | | |
149 | 133 | | |
150 | 134 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
154 | 147 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 148 | | |
159 | 149 | | |
160 | | - | |
161 | 150 | | |
162 | 151 | | |
163 | 152 | | |
| |||
177 | 166 | | |
178 | 167 | | |
179 | 168 | | |
180 | | - | |
| 169 | + | |
181 | 170 | | |
182 | 171 | | |
183 | 172 | | |
| |||
0 commit comments