tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Embeded Tomcat using a Connector with a random port (port 0)
Date Fri, 14 Oct 2011 12:57:37 GMT
2011/10/14 Mark Thomas <markt@apache.org>:
> If binding to a random port is to be supported I think it needs to be an
> explicit choice - e.g. by setting a special value such as "auto" - and
> ideally needs to be supported by all connectors.
>

2011/10/14 Olivier Lamy <olamy@apache.org>:
> Do we agree on the fact that after been started, the protocol handler
> will update the connector.port field to make the real port used
> available for use ?

If it were port=0 then you would better define a separate
getLocalPort() property.

The "auto" value... how can that be?  Connector.setPort() accepts
integer, and it can also be accessed through JMX.

There are several layers, and if you say "update its port number",
which of them will update its member variable and which not, and what
happens if connector is restarted e.g. through JMX?

Also I would like to introduce support for "-1" value for port number,
as I mentioned above, but that would be a separate feature.


> I have opened https://issues.apache.org/bugzilla/show_bug.cgi?id=52028
> and will try to propose a patch next week.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message