limit the number of producers and consumers created by a Connection
-------------------------------------------------------------------

                 Key: AMQ-3813
                 URL: https://issues.apache.org/jira/browse/AMQ-3813
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.5.1
            Reporter: Rob Davies
            Assignee: Rob Davies
             Fix For: 5.6.1


Sometimes a rogue client can create an unlimited number of producers or 
consumers if not developed correctly. The client is in effect launching a 
denial of service attack on the broker - as it will eventually run out of 
memory, storing ProducerInfos and ConsumerInfos. This enhancement enables the 
number of consumers and producers to be limited per connection - by adding 
maximumProducersAllowedPerConnection and maximumConsumersAllowedPerConnection 
properties to the transport connector - e.g.

<amq:transportConnectors>
   <amq:transportConnector uri="tcp://localhost:61631" 
maximumProducersAllowedPerConnection="5"  
maximumConsumersAllowedPerConnection="10"/>
</amq:transportConnectors>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to