moquette icon indicating copy to clipboard operation
moquette copied to clipboard

when protocol processor is inited with ssl port the word "disabled" is used to indicate the server name

Open windbender opened this issue 7 years ago • 0 comments

in this code (ProtocolProcessorBoostrapper.java: 144).

    m_processor.init(subscriptions, messagesStore, sessionsStore, authenticator, allowAnonymous, allowZeroByteClientId, authorizator, m_interceptor, props.getProperty(BrokerConstants.PORT_PROPERTY_NAME));

the value

props.getProperty(BrokerConstants.PORT_PROPERTY_NAME)

is used as the name for the server in future logging from ProtocolProcessor.

I'd like to change the field

m_server_port

in ProtocolProcessor to be:

m_server_name

And then setup some code to appropriately name that in the Bootstrapped. If this sounds good, I'll work towards a PR.

windbender avatar Sep 15 '16 19:09 windbender