Commit 870d1df
committed
xds: buffer responses during ext-proc request draining
When the external processor stream state is DRAINING, response headers,
status, and trailers received from the upstream server should not be
processed or forwarded immediately.
Modify ExternalProcessorClientInterceptor to buffer these response
headers and status/trailers in savedHeaders, savedStatus, and
savedTrailers, returning early when in DRAINING state. These will be
flushed and delivered to the application call listener once the sidecar
stream completes.1 parent 6b309ce commit 870d1df
2 files changed
Lines changed: 272 additions & 94 deletions
File tree
- xds/src
- main/java/io/grpc/xds
- test/java/io/grpc/xds
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1203 | 1207 | | |
1204 | 1208 | | |
1205 | 1209 | | |
| |||
1284 | 1288 | | |
1285 | 1289 | | |
1286 | 1290 | | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1287 | 1295 | | |
1288 | 1296 | | |
1289 | 1297 | | |
| |||
0 commit comments