[jira] [Commented] (ARTEMIS-391) Connection Limit doesn't log when over the limit
[ https://issues.apache.org/jira/browse/ARTEMIS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15152612#comment-15152612 ] ASF subversion and git services commented on ARTEMIS-391: - Commit e762f823d19fe569e4df6bd0713732223faa5fb4 in activemq-artemis's branch refs/heads/refactor-openwire from [~jbertram] [ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=e762f82 ] ARTEMIS-391 log WARN on cxn limit > Connection Limit doesn't log when over the limit > > > Key: ARTEMIS-391 > URL: https://issues.apache.org/jira/browse/ARTEMIS-391 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 1.2.0 >Reporter: clebert suconic >Assignee: Justin Bertram > Fix For: 1.3.0 > > > The current security limit doesn't log anything when going beyond the limit: > there is a Log.DEBUG, and an empty exception that is not shown anywhere. >else { > if (ActiveMQServerLogger.LOGGER.isDebugEnabled()) { >ActiveMQServerLogger.LOGGER.debug(new > StringBuilder().append("Connection limit of > ").append(connectionsAllowed).append(" reached. Refusing connection from > ").append(ctx.channel().remoteAddress())); > } > throw new Exception(); > } > The conneciton should be closed, and proper log should be printed. I think > this is a situation for log.warn as the admins will need to be aware of it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (ARTEMIS-391) Connection Limit doesn't log when over the limit
[ https://issues.apache.org/jira/browse/ARTEMIS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15152550#comment-15152550 ] ASF subversion and git services commented on ARTEMIS-391: - Commit e762f823d19fe569e4df6bd0713732223faa5fb4 in activemq-artemis's branch refs/heads/master from [~jbertram] [ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=e762f82 ] ARTEMIS-391 log WARN on cxn limit > Connection Limit doesn't log when over the limit > > > Key: ARTEMIS-391 > URL: https://issues.apache.org/jira/browse/ARTEMIS-391 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 1.2.0 >Reporter: clebert suconic >Assignee: Justin Bertram > Fix For: 1.3.0 > > > The current security limit doesn't log anything when going beyond the limit: > there is a Log.DEBUG, and an empty exception that is not shown anywhere. >else { > if (ActiveMQServerLogger.LOGGER.isDebugEnabled()) { >ActiveMQServerLogger.LOGGER.debug(new > StringBuilder().append("Connection limit of > ").append(connectionsAllowed).append(" reached. Refusing connection from > ").append(ctx.channel().remoteAddress())); > } > throw new Exception(); > } > The conneciton should be closed, and proper log should be printed. I think > this is a situation for log.warn as the admins will need to be aware of it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (ARTEMIS-391) Connection Limit doesn't log when over the limit
[ https://issues.apache.org/jira/browse/ARTEMIS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15137546#comment-15137546 ] Justin Bertram commented on ARTEMIS-391: Adding the logging here is easy. However, I'm not sure if anything extra needs to be done to ensure the connection is closed. When I modified the tests in [[org.apache.activemq.artemis.tests.integration.server.ConnectionLimitTest]] to check [[org.apache.activemq.artemis.core.server.ActiveMQServer#getConnectionCount]] everything looked as expected (i.e. only 1 connection was active at the end of the test). Do you see something I need to add to make sure the connection is closed? > Connection Limit doesn't log when over the limit > > > Key: ARTEMIS-391 > URL: https://issues.apache.org/jira/browse/ARTEMIS-391 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 1.2.0 >Reporter: clebert suconic >Assignee: Justin Bertram > Fix For: 1.3.0 > > > The current security limit doesn't log anything when going beyond the limit: > there is a Log.DEBUG, and an empty exception that is not shown anywhere. >else { > if (ActiveMQServerLogger.LOGGER.isDebugEnabled()) { >ActiveMQServerLogger.LOGGER.debug(new > StringBuilder().append("Connection limit of > ").append(connectionsAllowed).append(" reached. Refusing connection from > ").append(ctx.channel().remoteAddress())); > } > throw new Exception(); > } > The conneciton should be closed, and proper log should be printed. I think > this is a situation for log.warn as the admins will need to be aware of it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (ARTEMIS-391) Connection Limit doesn't log when over the limit
[ https://issues.apache.org/jira/browse/ARTEMIS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134950#comment-15134950 ] clebert suconic commented on ARTEMIS-391: - [~jbertram] I am assigining this to you just as I know you wrote this. If you can't do now assign it to null. > Connection Limit doesn't log when over the limit > > > Key: ARTEMIS-391 > URL: https://issues.apache.org/jira/browse/ARTEMIS-391 > Project: ActiveMQ Artemis > Issue Type: Bug >Affects Versions: 1.2.0 >Reporter: clebert suconic >Assignee: Justin Bertram > Fix For: 1.3.0 > > > The current security limit doesn't log anything when going beyond the limit: > there is a Log.DEBUG, and an empty exception that is not shown anywhere. >else { > if (ActiveMQServerLogger.LOGGER.isDebugEnabled()) { >ActiveMQServerLogger.LOGGER.debug(new > StringBuilder().append("Connection limit of > ").append(connectionsAllowed).append(" reached. Refusing connection from > ").append(ctx.channel().remoteAddress())); > } > throw new Exception(); > } > The conneciton should be closed, and proper log should be printed. I think > this is a situation for log.warn as the admins will need to be aware of it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)