https://bz.apache.org/bugzilla/show_bug.cgi?id=61171

--- Comment #6 from Mark Thomas <ma...@apache.org> ---
My suggestion is as follows:

Add a new getter for every getPort() or equivalent named getPortWithOffset()
and use it in place of getPort() whenever code needs to get the actual port
number to open. That would ensure that getPort()/setPort() (and
getOffset()/setOffset() ) remain symmetrical so they continue to work with
features like configuration saving.

portWithOffset should be exposed as a read-only JMX attribute everywhere port
is exposed.

It does mean users using an offset will need to look at a different attribute
to find the port they are actually using. That might confuse some tools but on
balance I think this is lower risk than getPort()/setPort() not being
symmetrical.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to