mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-03 02:04:09 +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
|
send a dummy message, clients may send an event with type `m.dummy`, and with
|
||||||
empty contents.
|
empty contents.
|
||||||
|
|
||||||
If the corrupted session has already been replaced, the receiving device should
|
In order to avoid creating too many extra sessions, a client should rate-limit
|
||||||
do nothing, under the assumption that the message from the corrupted session
|
the number of new sessions it creates per device that it receives a message
|
||||||
was sent before the sender was informed of the replacement session, in order to
|
from; the client should not create a new session with another device if it has
|
||||||
avoid creating too many extra sessions.
|
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
|
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
|
another device, it should use the session from which it last received a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue