Skip to content

MSC3982: Limit maximum number of events sent to an AS - #3982

Open
Half-Shot wants to merge 4 commits into
mainfrom
hs/as-txn-limit
Open

Half-Shot wants to merge 4 commits into
mainfrom
hs/as-txn-limit

Conversation

@Half-Shot

@Half-Shot Half-Shot commented Mar 21, 2023 •

Copy link
Copy Markdown
Contributor

@Half-Shot Half-Shot changed the title MSCXXXX: Limit maximum number of events sent to an AS MSC3982: Limit maximum number of events sent to an AS Mar 21, 2023

- This requires a two way communication between the Homeserver and AS, which presently isn't required.
- This potentially costs more time in negotiation than any efficiency losses from the hardcoded limit.
- Practically speaking, Synapse [has had a limit of 100](https://github.com/matrix-org/synapse/blob/develop/synapse/appservice/scheduler.py#L85-L86)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For other homeserver implementations:

Comment thread proposals/3982-proposal-template.md
Comment on lines +53 to +54
Potentially the homeserver and application service could negotiate a maximum event size instead of specifying
one in the spec, however this isn't desirable because:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another reason this is not reasonable is that neither Synapse nor the application service know about any middle boxes between them, so neither of them can possibly know the maximum HTTP request size that is allowed without trial & error.

Comment thread proposals/3982-proposal-template.md
@turt2live turt2live added proposal A matrix spec change proposal. Process state. A-Application Services Relates to the appservices spec kind:maintenance MSC which clarifies/updates existing spec needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. labels Mar 21, 2023
@Half-Shot

Copy link
Copy Markdown
Contributor Author

Synapse seems to implement this already, so I think needs-implementation can go away.

@turt2live turt2live removed the needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Application Services Relates to the appservices spec kind:maintenance MSC which clarifies/updates existing spec proposal A matrix spec change proposal. Process state.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Appservice API /_matrix/app/v1/transactions/ should specify maximum transaction sizes

3 participants