Commit e6e677f
tests: handle h2 reset timing after partial response body
Allow the h2 proxy test to pass whether the response body DATA frame is
observed before the downstream stream reset or the stream reset arrives first.
Both orderings are valid for this error path, and newer h2 behavior can surface
RST_STREAM(CANCEL) before the buffered body chunk is delivered.
Also keep the h2 drain-loop cleanup explicit by using clearer expect messages
and releasing flow-control capacity while draining the response.1 parent 95de0f7 commit e6e677f
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
997 | 1008 | | |
998 | 1009 | | |
999 | 1010 | | |
| |||
1024 | 1035 | | |
1025 | 1036 | | |
1026 | 1037 | | |
1027 | | - | |
| 1038 | + | |
1028 | 1039 | | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1029 | 1044 | | |
1030 | 1045 | | |
1031 | 1046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1116 | 1126 | | |
1117 | 1127 | | |
1118 | 1128 | | |
| |||
0 commit comments