emqx / emqtt-bench

Lightweight MQTT benchmark tool written in Erlang
https://www.emqx.com
Apache License 2.0
515 stars 132 forks source link

feat: add retry_interval for pub command #224

Closed zmstone closed 1 year ago

zmstone commented 1 year ago

emqtt has a retry_interval option which by default is 30 seconds. it is usually not triggered in normal load tests.

however, during some TCP packet-loss test scenarios, it has caused some confusion, the number of total sent messages is more than the -L (or --limit) option specified.

this PR adds the retry_interval option to the pub command, and by default turns off the retry.