fix(net): scope GCC -Wno-tsan to Http.cpp and fix StallServer race
This commit is contained in:
1 parent
66baae74a0
commit
9920bfdaac
2 files changed
+12
-1
No files matched your search
@@ -273,8 +273,9 @@ Void::Testing::Test http_client_timeout_bounds_a_stalled_server()
|
||||
|
||||
~StallServer()
|
||||
{
|
||||
if (conn >= 0) ::close(conn);
|
||||
if (fd >= 0) ::shutdown(fd, SHUT_RDWR);
|
||||
if (worker.joinable()) worker.join();
|
||||
if (conn >= 0) ::close(conn);
|
||||
if (fd >= 0) ::close(fd);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user