Anonymous | Login | Signup for a new account | 12-17-2024 10:53 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0004360 | [Resin] | minor | always | 01-25-11 14:36 | 01-25-11 15:53 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.14 | ||||||
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(); > > } > > |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |