From: Woo Xie Date: Sun, 14 Jun 2015 16:41:03 +0000 (-0700) Subject: do not suppurt compress and expand X-Git-Tag: v0.47.0~15 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fe6e73a623836ecc71e5bef35b701b1d44b19f52;p=folly.git do not suppurt compress and expand Summary: the openssl improvement does not support compression and decompression. Reviewed By: @Invalid auth token., @afrind Differential Revision: D2151003 --- diff --git a/folly/io/async/AsyncSSLSocket.cpp b/folly/io/async/AsyncSSLSocket.cpp index 8c609020..f4a44321 100644 --- a/folly/io/async/AsyncSSLSocket.cpp +++ b/folly/io/async/AsyncSSLSocket.cpp @@ -1251,7 +1251,9 @@ ssize_t AsyncSSLSocket::performWrite(const iovec* vec, #if 0 //#ifdef SSL_MODE_WRITE_IOVEC - if (ssl_->mode & SSL_MODE_WRITE_IOVEC) { + if (ssl_->expand == nullptr && + ssl_->compress == nullptr && + (ssl_->mode & SSL_MODE_WRITE_IOVEC)) { return performWriteIovec(vec, count, flags, countWritten, partialWritten); } #endif