464294 AsyncNCSARequestLog blocks JVM exit after failure

Made async writer thread a daemon
AbstractContainerLifeCycle stops failed beans
This commit is contained in:
Greg Wilkins 2015-07-08 17:42:12 +10:00
parent 77bdf84f5c
commit 7340a4d9b2
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}
}
}