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

mod_matrix_gw causing delay during login due to no answer to disco request #4310

Open
github-k8n opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@github-k8n
Copy link

Before creating a ticket, please consider if this should fit the discussion forum better.

Environment

  • ejabberd version: 24.10
  • Erlang version: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 15.0.1
  • OS: Linux (Gentoo)
  • Installed from: distro package

Configuration


listen:
  -
    port: 8448 # Matrix federation
    ip: ADDRESSV4
    module: ejabberd_http
    tls: true
    request_handlers:
      "/_matrix": mod_matrix_gw
  -
    port: 8448 # Matrix federation
    ip: ADDRESSV6
    module: ejabberd_http
    tls: true
    request_handlers:
      "/_matrix": mod_matrix_gw

modules:
  mod_matrix_gw:
    key_name: "key1"
    key: "MYKEY XXXXX"

Errors from error.log/crash.log

No errors

Bug description

When enabling mod_matrix_gw, login with Conversations takes a long time (10-20s) until it shows "Online".
Without mod_matrix_gw, login is almost instantaneous.

Looking through the logs it seems that the module does not respond to disco requests.
It should at least return an empty disco#info response.

This missing response seems to cause the delay during login.

@alexeyshch alexeyshch self-assigned this Nov 12, 2024
@badlop badlop changed the title mod_gw_matrix causing delay during login due to no answer to disco request mod_matrix_gw causing delay during login due to no answer to disco request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants