Commit 1c29125
authored
[ DWDS ] Disconnect non-DDS clients when DDS connects (#2671)
The native VM service disconnects all non-DDS clients when DDS connects
in order to keep state consistent. DWDS was never configured to work
this way and, instead, would not let DDS connect if there were already
existing clients.
This is fine most of the time, as DDS is typically the first client, but
in cases where multiple DDS instances attempt to start at once (e.g., a
simultaneous `flutter run` and `flutter attach`), this inconsistency
prevents tools from falling back to using an already connected DDS
instance, as seen in flutter/flutter#171758.
Fixes #23991 parent b947357 commit 1c29125
File tree
7 files changed
+1229
-819
lines changed- dwds
- lib/src
- injected
- services
- test
7 files changed
+1229
-819
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
160 | | - | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
0 commit comments