diff -r 2470f5d4e269 Modules/_ssl.c --- a/Modules/_ssl.c Thu Mar 20 06:44:33 2014 -0700 +++ b/Modules/_ssl.c Thu Mar 20 13:59:38 2014 -0400 @@ -2055,6 +2056,12 @@ /* Defaults */ SSL_CTX_set_verify(self->ctx, SSL_VERIFY_NONE, NULL); options = SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; + +#ifdef SSL_OP_NO_COMPRESSION + /* Disable TLS compression by default */ + options |= SSL_OP_NO_COMPRESSION; +#endif + if (proto_version != PY_SSL_VERSION_SSL2) options |= SSL_OP_NO_SSLv2; SSL_CTX_set_options(self->ctx, options);