mautrix / signal

A Matrix-Signal puppeting bridge
GNU Affero General Public License v3.0
514 stars 75 forks source link

mautrix-signal seems to be buffering or failing to send messages for awhile #561

Closed fingon closed 1 day ago

fingon commented 1 month ago

Versions:

Sequence of events (T being the 'now' I looked at timestamps in the Signal client):

T-2h: I send 1 message
T-1h-ish: He sends me some things as well, then and later (about 3)..
T-45min: I send 2 more messages (in response to his 3 messages)
T-15min: He gets my 3 messages, and comments about the matrix buffer

I did see his messages (and even responded to them), but in the other direction the delivery of especially first message was delayed hours.

Is this a known bug or something I should try to get more data on? It has been happening at least 4 months, every now and then (we notice it perhaps once every two, three weeks, but I use the bridge a lot). I have upgraded the related containers to latest tag every two or three weeks.

fwiw I'm running the bridge on warning log level right now as it is bit spammy otherwise, but I can lower the log level if it helps to debug this.

tulir commented 1 month ago

The bridge doesn't have any buffering

fingon commented 1 month ago

Hm, any idea where the messages would have been buffered then? I have seen this with more than one client (Element iOS, Element Desktop; I switched recently to X iOS so not that yet).

fingon commented 2 weeks ago

It happened again.

Clearly something appservice-related was stuck; do you think I should poke at Conduwuit guys or..?

fingon commented 1 day ago

Theory is that this was conduit bug with exponential back off that conduwuit inherited.