Skip to content

Commit

Permalink
Remove usages of IOBufQueue::clear()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ot authored and facebook-github-bot committed Dec 10, 2021
1 parent 0721ade commit 6e2d12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion folly/io/async/AsyncSSLSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ void AsyncSSLSocket::enableClientHelloParsing() {
void AsyncSSLSocket::resetClientHelloParsing(SSL* ssl) {
SSL_set_msg_callback(ssl, nullptr);
SSL_set_msg_callback_arg(ssl, nullptr);
clientHelloInfo_->clientHelloBuf_.clear();
clientHelloInfo_->clientHelloBuf_.reset();
}

void AsyncSSLSocket::parseClientAlpns(
Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/test/AsyncPipeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TestReadCallback : public folly::AsyncReader::ReadCallback {
void reset() {
movable_ = false;
error_ = false;
readBuffer_.clear();
readBuffer_.reset();
}

folly::IOBufQueue readBuffer_{folly::IOBufQueue::cacheChainLength()};
Expand Down

0 comments on commit 6e2d12f

Please sign in to comment.