diff -r 7860a42bcf98 Modules/_ssl.c --- a/Modules/_ssl.c Wed Mar 19 20:54:59 2014 -0500 +++ b/Modules/_ssl.c Thu Mar 20 14:40:21 2014 -0400 @@ -376,6 +376,12 @@ options = SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; if (proto_version != PY_SSL_VERSION_SSL2) options |= SSL_OP_NO_SSLv2; + +#ifdef SSL_OP_NO_COMPRESSION + /* Disable TLS compression by default */ + options |= SSL_OP_NO_COMPRESSION; +#endif + SSL_CTX_set_options(self->ctx, options); verification_mode = SSL_VERIFY_NONE;