Specify a limit on the number of EDUs and PDUs a transaction can contain
This commit is contained in:
parent
6cdb463829
commit
fc1fdc95af
3 changed files with 5 additions and 3 deletions
|
@ -31,7 +31,7 @@ properties:
|
||||||
example: 1532991320875
|
example: 1532991320875
|
||||||
pdus:
|
pdus:
|
||||||
type: array
|
type: array
|
||||||
description: List of persistent updates to rooms.
|
description: List of persistent updates to rooms. Must not include more than 50 PDUs.
|
||||||
items:
|
items:
|
||||||
$ref: "pdu.yaml"
|
$ref: "pdu.yaml"
|
||||||
required: ['origin', 'origin_server_ts', 'pdus']
|
required: ['origin', 'origin_server_ts', 'pdus']
|
||||||
|
|
|
@ -60,8 +60,8 @@ paths:
|
||||||
edus:
|
edus:
|
||||||
type: array
|
type: array
|
||||||
description: |-
|
description: |-
|
||||||
List of ephemeral messages. May be omitted if there are no ephemeral
|
List of ephemeral messages. May be omitted if there are no ephemeral
|
||||||
messages to be sent.
|
messages to be sent. Must not include more than 100 EDUs.
|
||||||
items:
|
items:
|
||||||
$ref: "definitions/edu.yaml"
|
$ref: "definitions/edu.yaml"
|
||||||
example: {
|
example: {
|
||||||
|
|
|
@ -262,6 +262,8 @@ of Transaction messages, which are encoded as JSON objects, passed over an HTTP
|
||||||
PUT request. A Transaction is meaningful only to the pair of homeservers that
|
PUT request. A Transaction is meaningful only to the pair of homeservers that
|
||||||
exchanged it; they are not globally-meaningful.
|
exchanged it; they are not globally-meaningful.
|
||||||
|
|
||||||
|
Transactions are limited in size; they can have at most 50 PDUs and 100 EDUs.
|
||||||
|
|
||||||
{{transactions_ss_http_api}}
|
{{transactions_ss_http_api}}
|
||||||
|
|
||||||
PDUs
|
PDUs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue