[Lldb-commits] [lldb] [lldb-dap] Fix flaky test (PR #145231)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 23 08:51:56 PDT 2025


================
@@ -310,7 +310,7 @@ serveConnection(const Socket::SocketProtocol &protocol, const std::string &name,
                                     "DAP session (" + client_name +
                                         ") error: ");
       }
-
+      io->Close();
----------------
da-viper wrote:

Shoudn't this get closed via RAII when it is out of scope ? 
https://github.com/llvm/llvm-project/blob/1128a4fd2c3a70ba61eead2ce093a9c31aa2970e/lldb/source/Host/common/Socket.cpp#L173-L175

https://github.com/llvm/llvm-project/pull/145231


More information about the lldb-commits mailing list