Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support compression in federation responses #13415

Closed
babolivier opened this issue Jul 29, 2022 · 1 comment
Closed

Support compression in federation responses #13415

babolivier opened this issue Jul 29, 2022 · 1 comment
Labels
good first issue Good for newcomers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@babolivier
Copy link
Contributor

Surprisingly we don't support compression on federation traffic (we just ignore compress: true on federation resources).

Should be as simple as:

            federation_resource: Resource = TransportLayerServer(self)
            if compress:
                federation_resource = gz_wrap(federation_resource)
            resources.update({FEDERATION_PREFIX: federation_resource})

here:

if name == "federation":
resources.update({FEDERATION_PREFIX: TransportLayerServer(self)})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

2 participants
@babolivier and others