[Lldb-commits] [lldb] [lldb] Fix broken pipe error (PR #127100)

Georgiy Samoylov via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 14 05:15:41 PST 2025


================
@@ -397,21 +413,23 @@ def connect_to_debug_monitor(self, attach_pid=None):
             # Schedule debug monitor to be shut down during teardown.
             logger = self.logger
 
-            connect_attemps = 0
+            connect_attempts = 0
             MAX_CONNECT_ATTEMPTS = 10
 
-            while connect_attemps < MAX_CONNECT_ATTEMPTS:
-                # Create a socket to talk to the server
-                try:
-                    logger.info("Connect attempt %d", connect_attemps + 1)
-                    self.sock = self.create_socket()
----------------
sga-sc wrote:

Addressed.

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


More information about the lldb-commits mailing list