mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-10 18:03:41 +01:00
we don't actually know which session got stuck, so rate-limit by device
This commit is contained in:
parent
d0bfdc13af
commit
495df02da6
|
|
@ -13,10 +13,11 @@ session, to the other party in order to inform them of the new session. To
|
|||
send a dummy message, clients may send an event with type `m.dummy`, and with
|
||||
empty contents.
|
||||
|
||||
If the corrupted session has already been replaced, the receiving device should
|
||||
do nothing, under the assumption that the message from the corrupted session
|
||||
was sent before the sender was informed of the replacement session, in order to
|
||||
avoid creating too many extra sessions.
|
||||
In order to avoid creating too many extra sessions, a client should rate-limit
|
||||
the number of new sessions it creates per device that it receives a message
|
||||
from; the client should not create a new session with another device if it has
|
||||
already created one for that given device in the past 1 hour. (TODO: is 1 hour
|
||||
the right amount of time?)
|
||||
|
||||
The spec currently says, "If a client has multiple sessions established with
|
||||
another device, it should use the session from which it last received a
|
||||
|
|
|
|||
Loading…
Reference in a new issue