processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/ejabberd/
Other
6.12k stars 1.51k forks source link

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

Open github-k8n opened 1 week ago

github-k8n commented 1 week ago

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

Environment

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.