Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_stanza_size doesn't work with websockets #4193

Closed
DoxasticFox opened this issue Dec 17, 2023 · 2 comments
Closed

max_stanza_size doesn't work with websockets #4193

DoxasticFox opened this issue Dec 17, 2023 · 2 comments

Comments

@DoxasticFox
Copy link

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
Copy link
Member

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

@chrzaszcz
Copy link
Member

Fixed by PR #4197.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants