Commit 60aebc2
committed
servlet: Register response trailers before stream writes
Register the trailer supplier while creating the servlet stream, before a peer reset can cause the container to commit the response. This removes the race where Jetty throws IllegalStateException from writeHeaders after receiving RST_STREAM.
Fixes #127771 parent fc43144 commit 60aebc2
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
234 | | - | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
0 commit comments