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