Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: This proposal has been withdrawn at least for Tomcat 10.0

During the Tomcat 10 development cycle, one of the goals is to remove redundant object attributes and simplify. A major area of duplication was TLS configuration. Moving to a related topic, the rest of the Connector configuration is the biggest offender. While it (thankfully) works, it sets configuration properties through a chain of objects using reflection and weird constructor initialization. For example, setting the connection timeout on the Connector element in server.xml will call setConnectionTimeout on AbstractProtocol using reflection, then setConnectionTimeout on AbstractEndpoint, then setSoTimeout on SocketProperties.

...