Commit c20fba0
authored
xds: Exported
This PR contains changes required for the xDS client resource parsing
fuzzer. These changes facilitate the initialization of the xDS client in
the fuzzer and resolve potential deadlocks during stream operations in
the fake transport.
## Changes
`internal/xds/xdsclient`
- **Export `BuildXDSClientConfig`**: Exported `buildXDSClientConfig` to
allow external packages (like the fuzzer) to construct
`xdsclient.Config` from a bootstrap config.
`internal/xds/clients/internal/testutils/faketransport`
- **Add Timeout to `Send`**: Added a 10ms timeout to `Send` in
`xds_fake_transport.go`. This prevents the client from deadlocking when
sending messages if the fuzzer's server handle is not actively consuming
them.
RELEASE NOTES: N/AbuildXDSClientConfig to use in external packages and update xds_fake_transport.go. (grpc#9014)1 parent 6477252 commit c20fba0
File tree
3 files changed
+15
-6
lines changed- internal/xds
- clients/internal/testutils/faketransport
- xdsclient
3 files changed
+15
-6
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
185 | 192 | | |
186 | | - | |
187 | | - | |
| 193 | + | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
0 commit comments