|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4360 | minor | always | 01-25-11 14:36 | 01-25-11 15:53 | |
|
|
|||||
| Reporter: | ferg | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.14 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.15 | ||
|
|
|||||
| Summary: | 0004360: comet/async flushing/header behavior | ||||
| Description: |
(rep by Manoj Chennath) > > public class AceFilter implements Filter { > > > > public void doFilter(ServletRequest servletRequest, > > ServletResponse servletResponse, > > final FilterChain filterChain) > > throws IOException, ServletException { > > > > HttpServletResponse res = (HttpServletResponse) servletResponse; > > res.addHeader("filter-header", "added"); > > > > final AsyncContext context = > > servletRequest.startAsync(servletRequest, > > servletResponse); > > > > new Thread(new Runnable(){ > > > > public void run() { > > try { > > Thread.sleep(1000*20); > > > > //filterChain is used from a different thread. > > //Container should not reuse filterChain before > > //context complete. > > filterChain.doFilter(context.getRequest(), > > context.getResponse()); > > } catch (Exception e) { > > e.printStackTrace(); > > } finally { > > context.complete(); > > } > > } > > }).start(); > > } > > |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||