Mantis Bugtracker
  

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

- Relationships

- Notes
(0004995)
ferg
01-25-11 15:53

server/11a3
 

- Issue History
Date Modified Username Field Change
01-25-11 14:36 ferg New Issue
01-25-11 15:53 ferg Note Added: 0004995
01-25-11 15:53 ferg Assigned To  => ferg
01-25-11 15:53 ferg Status new => closed
01-25-11 15:53 ferg Resolution open => fixed
01-25-11 15:53 ferg Fixed in Version  => 4.0.15


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker