@@ -89,8 +89,9 @@ Temporary protocol submode
89
89
^^^^^^^^^^^^^^^^^^^^^^^^^^
90
90
91
91
A temporary protocol submode begins with ConnectRequest message, to which the
92
- relay responds with either ResponseNotFound if the device the client it is after
93
- is not available, or with a SessionInvitation, which contains the unique session
92
+ relay responds with ResponseNotFound if the device the client it is after
93
+ is not available, with a RelayFull if the relay has reached its limits,
94
+ or with a SessionInvitation, which contains the unique session
94
95
key which then can be used to establish a connection in session mode.
95
96
96
97
The connection is terminated immediately after that.
@@ -125,11 +126,13 @@ Session mode
125
126
The first and only message the client sends in the session mode is the
126
127
JoinSessionRequest message which contains the session key identifying which
127
128
session you are trying to join. The relay responds with one of the following
128
- Response messages:
129
+ messages:
129
130
130
131
1. ResponseNotFound - Session key is invalid
131
132
2. ResponseAlreadyConnected - Session is full (both sides already connected)
132
133
3. ResponseSuccess - You have successfully joined the session
134
+ 4. RelayFull - Relay limits are too strict for you to be able to join the session.
135
+ The relay immediately terminates the connection after sending this.
133
136
134
137
After the successful response, all the bytes written and received will be
135
138
relayed between the two devices in the session directly.
@@ -372,6 +375,19 @@ SessionInvitation message (Type = 6)
372
375
the invitation which is sent to the other device, so that there is always
373
376
one client socket, and one server socket.
374
377
378
+ RelayFull message (Type = 7)
379
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
380
+
381
+ ::
382
+
383
+ 0 1 2 3
384
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
385
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
386
+
387
+
388
+ struct RelayFull {
389
+ }
390
+
375
391
How Syncthing uses relays, and general security
376
392
-----------------------------------------------
377
393
0 commit comments