fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

Support limiting the number of MQTT threads used. #90

Open hrhino opened 7 years ago

hrhino commented 7 years ago

Allowing an application to open Integer.MAX_VALUE threads is a really really awful idea, and I'd love to be able to Not Do The Thing™.

And yes, this is causing us grief in production, to the extent that I feel bad even setting the default to Integer.MAX_VALUE, but in the interest of backwards-compatibility...