Summary: | when maxConnections="-1" AprEndpoint init error | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | hongjiang <w.hongjiang> |
Component: | Connectors | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sunqi800 |
Priority: | P2 | ||
Version: | 7.0.55 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
hongjiang
2014-09-04 04:18:16 UTC
*** Bug 56909 has been marked as a duplicate of this bug. *** The way the APR Poller works, an unlimited number of connections isn't possible. I see two options if maxConnections is specified as -1. a) Log an error and don't let the connector start b) Use a high number (e.g. 64k), log a warning and start the connector. I'm leaning towards b). In the end I decided to ignore values of -1, log a warning and continue using the current value. Fixed in 8.0.x for 8.0.13 onwards and in 7.0.x for 7.0.56 onwards. |