Repository navigation
Commit ca5c574
committed
xds: decouple request/response payload interception and address review feedback
- Split Filter.requiresPayloadAccess into requiresRequestPayloadAccess and
requiresResponsePayloadAccess so RawMessageClientInterceptor only intercepts
the direction(s) that require payload access.
- Short-circuit ExternalProcessorUtil.outboundStreamToByteString when the input
stream is already a KnownLengthInputStream, and reuse it in
RawMessageClientInterceptor.
- Cancel the call in RawMessageClientInterceptor.sendMessage when reading the
request stream fails with IOException or RuntimeException.
- Fail the RPC as a protocol error if ext_proc returns a request_body or
response_body response when the corresponding body mode is not GRPC.
- Guard DataPlaneListener.onMessage and drainSavedMessages against casting
response messages to InputStream when responseBodyMode != GRPC.
TAG=agy
CONV=56c87717-243d-4f12-af9e-c532e509892a1 parent f52bbd2 commit ca5c574
9 files changed
Lines changed: 821 additions & 170 deletions
File tree
- xds/src
- main/java/io/grpc/xds
- internal/extproc
- test/java/io/grpc/xds
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
552 | 561 | | |
553 | 562 | | |
554 | 563 | | |
| |||
558 | 567 | | |
559 | 568 | | |
560 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
561 | 579 | | |
562 | 580 | | |
563 | 581 | | |
| |||
999 | 1017 | | |
1000 | 1018 | | |
1001 | 1019 | | |
1002 | | - | |
| 1020 | + | |
1003 | 1021 | | |
1004 | 1022 | | |
1005 | 1023 | | |
| |||
1539 | 1557 | | |
1540 | 1558 | | |
1541 | 1559 | | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1558 | 1563 | | |
1559 | 1564 | | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1565 | 1575 | | |
1566 | 1576 | | |
1567 | 1577 | | |
1568 | 1578 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1575 | 1583 | | |
1576 | 1584 | | |
1577 | 1585 | | |
| |||
1602 | 1610 | | |
1603 | 1611 | | |
1604 | 1612 | | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1605 | 1617 | | |
1606 | 1618 | | |
1607 | 1619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
139 | 152 | | |
140 | 153 | | |
141 | 154 | | |
142 | 155 | | |
143 | 156 | | |
144 | 157 | | |
145 | 158 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 159 | + | |
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | | - | |
| 140 | + | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
0 commit comments