Commit d75cc4e
committed
xds: enforce trailer mode SEND for GRPC response body mode in ext_proc client
- Enforce that responseTrailerMode must be SEND if responseBodyMode is GRPC
in ExternalProcessorFilter configuration validation.
- Refactor ExternalProcessorClientInterceptor.triggerCloseHandshake to cleanly
close the ext_proc stream when trailers are skipped, removing the legacy
empty body end-of-stream signal.
- Update unit tests in ExternalProcessorClientInterceptorTest to configure
responseTrailerMode = SEND when using responseBodyMode = GRPC and perform
the trailers handshake.
- Rename givenExtProcRespondsWithEndOfStream_whenAppHasNotHalfClosed_thenClosePropagated
to givenResponseTrailerModeSend_whenDataPlaneCloses_thenTrailersHandshakeCompleted.1 parent b6e22cb commit d75cc4e
3 files changed
Lines changed: 721 additions & 559 deletions
File tree
- xds/src
- main/java/io/grpc/xds
- test/java/io/grpc/xds
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | 1373 | | |
| 1374 | + | |
1381 | 1375 | | |
1382 | 1376 | | |
1383 | 1377 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments