esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 422 forks source link

`max_stanza_size` doesn't work with websockets #4193

Closed DoxasticFox closed 4 months ago

DoxasticFox commented 5 months ago

I'm using the mongooseim/mongooseim:6.1.0-5-gabdcd0b48 docker image. I tried setting:

[[listen.http]]
  ip_address = "0.0.0.0"
  port = 5442
  transport.num_acceptors = 10
  transport.max_connections = 1024

  [[listen.http.handlers.mod_websockets]]
    host = "_"
    path = "/"
    max_stanza_size = 10

The important part is the max_stanza_size setting, which seems to have no effect. I expect it to place a limit on the largest possible message. But I'm still able to send the text of the entire Wikipedia article about Beyoncé, including citations.

chrzaszcz commented 4 months ago

Thanks for reporting this issue. It is caused by a bug in the exml library. We will fix soon.

chrzaszcz commented 4 months ago

Fixed by PR #4197.