Skip to content

Commit

Permalink
REGISTER.Options.forward_timeout option (#501)
Browse files Browse the repository at this point in the history
Fixes #500
  • Loading branch information
ecorm committed Jul 17, 2023
1 parent 5a10c06 commit bf7d47b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rfc/text/advanced/ap_11_rpc_call_timeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ The error message that is returned to the *Caller* MUST use `wamp.error.timeout`

If the *Callee* supports Call Timeouts, the *Dealer* MAY propagate the `CALL.Options.timeout|integer` option via the `INVOCATION` message and allow the *Callee* to handle the timeout logic. If the operation times out, the *Callee* MUST return an `ERROR` message with `wamp.error.timeout` as the reason URI.

The decision by *Dealers* to delegate timeouts to *Callees* supporting this feature MAY be determined by router configuration.
*Callees* wanting to handle the timeout logic MAY specify this intention via the `REGISTER.Options.forward_timeout|boolean` option. The *Dealer*, upon receiving a CALL with the `timeout` option set, checks if the matching RPC registration had the `forward_timeout` option set, then accordingly either forwards the timeout value or handles the timeout logic locally without forwarding the timeout value.

*Dealers* MAY choose to override the `REGISTER.Options.forward_timeout|boolean` option based on router configuration. For example, if a *Dealer* is resource-constrained and does not wish to maintain a queue of pending call timeouts, it may decide to always forward the CALL timeout option to *Callees*.

**Caller-Initiated Timeouts**

Expand Down

0 comments on commit bf7d47b

Please sign in to comment.