代码之家  ›  专栏  ›  技术社区  ›  Escher

我是否可以限制mosquitto,以便任何客户端每秒发布的消息都不能超过N条?

  •  0
  • Escher  · 技术社区  · 7 年前

    documentation ,但我还不知道代理是否可以限制来自编写不好的客户机的连接尝试和发布,例如如果有人编写了 while not connected { connect() } while true { get_reading_and_publish() } 键入例程。我运行的是1.5版。mosquitto是否可以限制每个客户端的连接和发布?

    mosquitto.conf文档引用 limits.conf 但据我所知,这只是用来限制套接字连接。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Gambit Support    7 年前

    在专用端口上运行mosquitto,在公共MQTT端口上运行速率限制代理。