Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XEP-0138 stream compression #231

Merged
merged 2 commits into from
Jan 31, 2024
Merged

XEP-0138 stream compression #231

merged 2 commits into from
Jan 31, 2024

Conversation

sjaeckel
Copy link
Member

This adds support for XEP-0138 stream compression.

Support for XEP-0138 is enabled by default if zlib can be found on the build-system.

New compile time option: --disable-zlib
New run time options/flags: XMPP_CONN_FLAG_ENABLE_COMPRESSION and XMPP_CONN_FLAG_COMPRESSION_DONT_RESET

The feature is disabled by default, since it is deemed insecure. In a closed/controlled scenario (e.g. some M2M applications) it can still be useful.

@sjaeckel sjaeckel requested a review from pasis January 29, 2024 11:38
@sjaeckel sjaeckel force-pushed the xep-0138 branch 3 times, most recently from 85ba8be to be2debd Compare January 30, 2024 09:47
Signed-off-by: Steffen Jaeckel <[email protected]>
@sjaeckel sjaeckel force-pushed the xep-0138 branch 2 times, most recently from a98deac to 0d573b4 Compare January 31, 2024 16:09
@sjaeckel sjaeckel added this to the next milestone Jan 31, 2024
Introduce a `conn_interface` to simplify the decision logic which API
we must call.

This also fixes some bugs of the previous commit.

Signed-off-by: Steffen Jaeckel <[email protected]>
@sjaeckel sjaeckel merged commit 3f03de0 into master Jan 31, 2024
48 checks passed
@sjaeckel sjaeckel deleted the xep-0138 branch January 31, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant