Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class TestSSLServer's destructor hang forever. #2344

Open
jiayuehua opened this issue Nov 23, 2024 · 0 comments
Open

class TestSSLServer's destructor hang forever. #2344

jiayuehua opened this issue Nov 23, 2024 · 0 comments

Comments

@jiayuehua
Copy link

jiayuehua commented Nov 23, 2024

when run this unit test.

./io_async_async_test --gtest_filter=AsyncSSLSocketTest.ConnectWriteReadClose

the test can't finish since on the eventbase thread that evb_ loop not exit even ~TestSSLServer() call:

evb_.runInEventBaseThread([&]() { socket_->stopAccepting(); });

so thread_.join(); hang forever.

\folly\io\async\test\TestSSLServer.h

Also there's ODR violation for io_async_async_test, for example class ReadCallback is defined in two files: folly\io\async\test\AsyncSocketTest.h and
folly\io\async\test\AsyncSSLSocketTest.h. May be should split io_async_async_test into two test, one for AsyncSocket related and another for AsyncSSLSocket related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant