Skip to content

Commit e3e86b6

Browse files
authored
Clarify that all client information MUST be deleted on 'disconnected' message (#158)
1 parent ed31d9c commit e3e86b6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Protocol.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,13 @@ the *id* field contains a valid responder address (`0x02..0xff`).
935935
A responder who receives a 'disconnected' message SHALL validate that
936936
the *id* field contains a valid initiator address (`0x01`).
937937

938-
A receiving client MUST notify the user application about the incoming
939-
'disconnected' message, along with the *id* field.
938+
A receiving client MUST delete all cached information about and for the
939+
other client with the identity of the *id* field (such as cookies and
940+
sequence numbers). The client MAY stay on the path and wait for a new
941+
initiator/responder to connect. However, the client-to-client handshake
942+
MUST start from the beginning. In addition, the client MUST notify the
943+
user application that the client with the identity *id* has
944+
disconnected.
940945

941946
The message SHALL be NaCl public-key encrypted by the server's session
942947
key pair and the client's permanent key pair.

0 commit comments

Comments
 (0)