zlib - stream compression

Since version 1.1.0, ejabberd supports Stream Compression as defined on JEP-0138: Stream Compression. Please note that ejabberd allows a client to connect using either STARTTLS or stream compression, but not both methods simultaneously.

Configuration

To enable stream compression on C2S connections, edit ejabberd.cfg and add 'zlib' as shown on this example:

{5222, ejabberd_c2s, [{access, c2s}, 
                      {shaper, c2s_shaper}, 
                      starttls, 
                      zlib, 
                      {certfile, "../ssl.pem"}]},

Then restart ejabberd and the feature will be available.

Related Links

Syndicate content