Skip to content

Commit cb1182c

Browse files
authored
CONNECTION_CLOSE error code (rsocket#148)
`CONNECTION_CLOSE` error code As discussed in issue rsocket#59 having an error code to indicate "safe closure" similar to GO_AWAY frame in HTTP/2 will be useful to indicate graceful shutdown as opposed to a fatal erro.
1 parent 22d3efa commit cb1182c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Protocol.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ The Error Data is typically an Exception message, but could include stringified
309309
| __INVALID_SETUP__ | 0x00000001 | The Setup frame is invalid for the server (it could be that the client is too recent for the old server). Stream ID MUST be 0. |
310310
| __UNSUPPORTED_SETUP__ | 0x00000002 | Some (or all) of the parameters specified by the client are unsupported by the server. Stream ID MUST be 0. |
311311
| __REJECTED_SETUP__ | 0x00000003 | The server rejected the setup, it can specify the reason in the payload. Stream ID MUST be 0. |
312-
| __REJECTED_RESUME__ | 0x00000004 | The server rejected the resume, it can specify the reason in the payload. Stream ID MUST be 0. |
313-
| __CONNECTION_ERROR__ | 0x00000101 | The connection is being terminated. Stream ID MUST be 0. |
312+
| __REJECTED_RESUME__ | 0x00000004 | The server rejected the resume, it can specify the reason in the payload. Stream ID MUST be 0. |
313+
| __CONNECTION_ERROR__ | 0x00000101 | The connection is being terminated. Stream ID MUST be 0. Sender or Receiver of this frame MAY close the connection immediately without waiting for outstanding streams to terminate.|
314+
| __CONNECTION_CLOSE__ | 0x00000102 | The connection is being terminated. Stream ID MUST be 0. Sender or Receiver of this frame MUST wait for outstanding streams to terminate before closing the connection. New requests MAY not be accepted.|
314315
| __APPLICATION_ERROR__ | 0x00000201 | Application layer logic generating a Reactive Streams _onError_ event. Stream ID MUST be non-0. |
315316
| __REJECTED__ | 0x00000202 | Despite being a valid request, the Responder decided to reject it. The Responder guarantees that it didn't process the request. The reason for the rejection is explained in the metadata section. Stream ID MUST be non-0. |
316317
| __CANCELED__ | 0x00000203 | The responder canceled the request but potentially have started processing it (almost identical to REJECTED but doesn't garantee that no side-effect have been started). Stream ID MUST be non-0. |

0 commit comments

Comments
 (0)