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

--- Comment #7 from Andy Wilkinson <awilkin...@pivotal.io> ---
> As you're not calling setConnector either

We do call setConnector but I neglected to mention it until now as I hadn't
realised it was pertinent. Sorry. It's called as part of configuring the
embedded Tomcat instance. This configuration can also include customisations
that are made by users' code. Once everything's been configured we temporarily
remove the connectors and start Tomcat. Once Tomcat and other bits and pieces
have successfully started and we're in a position to start handling requests,
the Connectors are reinstated.

Previously (8.5.6 and earlier), calling setConnector meant that the Connector
was cached in Tomcat's connector field. This cached Connector would then be
returned from getConnector() instead of creating the default Connector which
prevented the call to start from creating an unwanted Connector.

> Call getConnector, it won't hurt

Thanks for the suggestion. Won't we end up with the Service having an extra
connector (one from our call to setConnector and one from the call to
getConnector)?. Instead, perhaps the defaultConnectorCreated flag could be set
when setConnector is called?

-- 
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