Commit bb9a2237 authored by Kyle Nekritz's avatar Kyle Nekritz Committed by Facebook Github Bot

Deflake some AsyncSSLSocket tests.

Summary: Fulfilling starts destroying the evb in another thread which races with the socket closing on the evb.

Reviewed By: siyengar, ngoyal

Differential Revision: D5755271

fbshipit-source-id: ace37eee63e684c97ca0fe503293eee83514e0ac
parent e540cbee
...@@ -206,13 +206,13 @@ class ConnectClient : public AsyncSocket::ConnectCallback { ...@@ -206,13 +206,13 @@ class ConnectClient : public AsyncSocket::ConnectCallback {
} }
void connectSuccess() noexcept override { void connectSuccess() noexcept override {
promise_.setValue(true);
socket_.reset(); socket_.reset();
promise_.setValue(true);
} }
void connectErr(const AsyncSocketException& /* ex */) noexcept override { void connectErr(const AsyncSocketException& /* ex */) noexcept override {
promise_.setValue(false);
socket_.reset(); socket_.reset();
promise_.setValue(false);
} }
void setCtx(std::shared_ptr<SSLContext> ctx) { void setCtx(std::shared_ptr<SSLContext> ctx) {
......
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