Commit 6e2d12f8 authored by Giuseppe Ottaviano's avatar Giuseppe Ottaviano Committed by Facebook GitHub Bot

Remove usages of IOBufQueue::clear()

Summary:
Drop all the remaining instances of `IOBufQueue::clear()`.

(Note: this ignores all push blocking failures!)

Reviewed By: yfeldblum

Differential Revision: D32941992

fbshipit-source-id: c7d983e215a78014ffda74a944b628e1886c35c8
parent 0721ade3
...@@ -1931,7 +1931,7 @@ void AsyncSSLSocket::enableClientHelloParsing() { ...@@ -1931,7 +1931,7 @@ void AsyncSSLSocket::enableClientHelloParsing() {
void AsyncSSLSocket::resetClientHelloParsing(SSL* ssl) { void AsyncSSLSocket::resetClientHelloParsing(SSL* ssl) {
SSL_set_msg_callback(ssl, nullptr); SSL_set_msg_callback(ssl, nullptr);
SSL_set_msg_callback_arg(ssl, nullptr); SSL_set_msg_callback_arg(ssl, nullptr);
clientHelloInfo_->clientHelloBuf_.clear(); clientHelloInfo_->clientHelloBuf_.reset();
} }
void AsyncSSLSocket::parseClientAlpns( void AsyncSSLSocket::parseClientAlpns(
......
...@@ -61,7 +61,7 @@ class TestReadCallback : public folly::AsyncReader::ReadCallback { ...@@ -61,7 +61,7 @@ class TestReadCallback : public folly::AsyncReader::ReadCallback {
void reset() { void reset() {
movable_ = false; movable_ = false;
error_ = false; error_ = false;
readBuffer_.clear(); readBuffer_.reset();
} }
folly::IOBufQueue readBuffer_{folly::IOBufQueue::cacheChainLength()}; folly::IOBufQueue readBuffer_{folly::IOBufQueue::cacheChainLength()};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment