464294 AsyncNCSARequestLog blocks JVM exit after failure
Made async writer thread a daemon AbstractContainerLifeCycle stops failed beans
This commit is contained in:
parent
77bdf84f5c
commit
7340a4d9b2
|
@ -176,6 +176,10 @@ public class Http2Server
|
|||
content+="uri="+request.getRequestURI()+"\n";
|
||||
content+="session="+session.getId()+(session.isNew()?"(New)\n":"\n");
|
||||
content+="date="+new Date()+"\n";
|
||||
|
||||
for (Cookie c : request.getCookies())
|
||||
content+="cookie "+c.getName()+"="+c.getValue()+"\n";
|
||||
|
||||
response.setContentLength(content.length());
|
||||
response.getOutputStream().print(content);
|
||||
}
|
||||
|
|
|
@ -158,8 +158,7 @@ public class ContainerLifeCycle extends AbstractLifeCycle implements Container,
|
|||
if (b._managed==Managed.MANAGED && b._bean instanceof LifeCycle)
|
||||
{
|
||||
LifeCycle l = (LifeCycle)b._bean;
|
||||
if (l.isRunning())
|
||||
stop(l);
|
||||
stop(l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue