if (context instanceof StandardContext) {
File workDir= (File)
((StandardContext)context).getServletContext().getAttribute(Globals.WORK_DIR_ATTR);
- tldCache=new File( workDir, "tldCache.ser");
+ //tldCache=new File( workDir, "tldCache.ser");
}
// Option to not rescan
}
}
- // Initialize keepalive timeout if it has not been set
- if (keepAliveTimeout == -1) {
- keepAliveTimeout = soTimeout;
- }
-
// Delay accepting of new connections until data is available
// Only Linux kernels 2.4 + have that implemented
// on other platforms this call is noop and will return APR_ENOTIMPL.
/**
* Create the poller. With some versions of APR, the maximum poller size will
- * be 62 (reocmpiling APR is necessary to remove this limitation).
+ * be 62 (recompiling APR is necessary to remove this limitation).
*/
protected void init() {
pool = Pool.create(serverSockPool);
int size = pollerSize / pollerThreadCount;
int timeout = keepAliveTimeout;
+ if (timeout < 0) {
+ timeout = soTimeout;
+ }
if (comet) {
// FIXME: Find an appropriate timeout value, for now, "longer than usual"
// semms appropriate