Add an additional wait that prevents a JVM crash on shutdown detected in TestAsyncContextImpl tests
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@981061
13f79535-47bb-0310-9956-
ffa450edef68
// in the poller can cause problems
try {
synchronized (this) {
- this.wait(pollTime);
+ this.wait(pollTime / 1000);
}
} catch (InterruptedException e) {
// Ignore
}
sendfiles = null;
}
+ // Wait another polltime to make sure everything is shutdown else
+ // the JVM will crash when we terminate the APR library
+ try {
+ synchronized (this) {
+ this.wait(pollTime / 1000);
+ }
+ } catch (InterruptedException e) {
+ // Ignore
+ }
}
shutdownExecutor();
}