Commit c7a946b
authored
Revert "servlet: fix write when not ready in AsyncServletOutputStreamWriter (#12867)
This reverts commit 243b79e. The
approach taken of ensuring subsequent writes go through the container
thread via onWritePossible() hasn't eliminated the need for catching the
IllegalStateException (which you are catching and buffering the write if
it happens). We have observed that the UndertowInteropTest now hangs
instead of the earlier flaky failures due to uncaught exception. There
has been another PR #12732 for the
same issue that explicitly checks isReady.getAsBoolean() in addition to
the cached state, that's probably most reliable, because you don't have
to deal with callback scheduling and the state changing in the meantime.
We would like to proceed with that PR and revert this one.
@mgustimz1 parent 4456721 commit c7a946b
2 files changed
Lines changed: 12 additions & 338 deletions
File tree
- servlet/src
- main/java/io/grpc/servlet
- test/java/io/grpc/servlet
Lines changed: 12 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 221 | + | |
230 | 222 | | |
231 | 223 | | |
232 | 224 | | |
| |||
238 | 230 | | |
239 | 231 | | |
240 | 232 | | |
241 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 247 | | |
262 | 248 | | |
263 | 249 | | |
| |||
Lines changed: 0 additions & 312 deletions
This file was deleted.
0 commit comments