From fe6e73a623836ecc71e5bef35b701b1d44b19f52 Mon Sep 17 00:00:00 2001 From: Woo Xie Date: Sun, 14 Jun 2015 09:41:03 -0700 Subject: [PATCH] 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 --- folly/io/async/AsyncSSLSocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1