emqx / emqx-sn

EMQX MQTT-SN Gateway
https://www.emqx.com
Apache License 2.0
30 stars 20 forks source link

Fix idle_timeout configuration #128

Closed tradingtrace closed 5 years ago

tradingtrace commented 5 years ago
  1. It was ?IDLE_TIMEOUT in the return of idle state, but I think it should be #state.idle_timeout which comes from emqx_sn.conf.
  2. #state.idle_timeout was used by the stats collection timer, it's a little confusing. Add a macro ?STAT_TIMEOUT for it.
  3. Change shutdown to stop when idle timeout to ignore the prints in #110 which generated by the broadcast from emqx_sn itself.
gilbertwong96 commented 5 years ago

Thanks for your contribution and really appreciate your work 👍