| Summary: | Illegal operations on AsyncContinuation should not change its state. | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | David Jencks <david.a.jencks> |
| Component: | server | Assignee: | Greg Wilkins <gregw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jetty-inbox, mgorovoy |
| Version: | 8.0.0 | ||
| Target Milestone: | 7.1.x | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Fix committed in rev 2237 port to jetty 7 in rev 2239 Marking as resolved. |
suspend changes a few fields, then checks to see if the current state is one in which suspend can be called. This can result in an infinite loop with code like: AsyncContext ac = request.startAsync(); ac.dispatch(...); try { request.startAsync(); } catch (IllegalStateException e) { response.getWriter("Hah! fooled you"); }