ejabberd - Comments for "gzip compression for BOSH HTTP traffic" https://www.ejabberd.im/node/11518 en Few comments: gzipping all https://www.ejabberd.im/node/11518#comment-60300 <p>Few comments:</p> <ul> <li>gzipping all of the content unconditionally is just a waste of CPU, due to the nature of BOSH most server responses are very small (they contain only <code>&quot;&lt;body xmlns=&#039;http://jabber.org/protocol/httpbind&#039;/&gt;&quot;</code>) and fit into a single packet, gzipping single packet response gives completely no gain, but obviously uses CPU; it would be better to gzip only responses that are larger than one packet (HTTP body larger than 1200-1300 bytes, depending on the amount of HTTP headers)</li> <li>ungzipping incoming traffic is useless, no browser will send such traffic since there is no way for a browser to know, beforehand, that the server supports it</li> <li>ejabberd uses GPL2, not GPL3 (but I'm not sure if that matters)</li> <li>if you want to include your patch in ejabberd then send a pull request on github</li> </ul> Tue, 21 May 2013 16:29:44 +0000 rraptorr comment 60300 at https://www.ejabberd.im