[all-commits] [llvm/llvm-project] 5cc419: [lldb-mcp] Fix servers accepting more than one cli...

John Harrison via All-commits all-commits at lists.llvm.org
Wed Sep 17 16:43:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cc41936f22da6edd4a85927774df17b1e7c945e
      https://github.com/llvm/llvm-project/commit/5cc41936f22da6edd4a85927774df17b1e7c945e
  Author: John Harrison <harjohn at google.com>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M lldb/include/lldb/Host/JSONTransport.h
    M lldb/include/lldb/Protocol/MCP/Server.h
    M lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp
    M lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.h
    M lldb/source/Protocol/MCP/Server.cpp
    M lldb/unittests/Host/JSONTransportTest.cpp
    M lldb/unittests/Protocol/ProtocolMCPServerTest.cpp

  Log Message:
  -----------
  [lldb-mcp] Fix servers accepting more than one client. (#158357)

This fixes an issue where the MCP server would stop the main loop after
the first client disconnects.

This moves the MainLoop out of the Server instance and lifts the server
up into the ProtocolServerMCP object instead. This allows us to register
the client with the main loop used to accept and process requests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list