| Issue |
234254
|
| Summary |
[lldb-dap] ServerMode active sessions when another client disconnects
|
| Labels |
lldb-dap
|
| Assignees |
da-viper
|
| Reporter |
da-viper
|
lldb-dap drops active connections if one debug session disconnects and a new session is not connected within the --connection-timeout. Instead lldb-dap is supposed to exit only after all the clients disconnect and the timeout passes.
Reproducer:
1. Start the server with a short timeout, in terminal 1 run:
`lldb-dap --connection listen://localhost:4711 --connection-timeout 10`
2. Open two new connections or start two new debug session from vscode:
```sh
nc localhost 4711 # client 1 (terminal B)
nc localhost 4711 # client 2 (terminal C)
```
3. Disconnect from client 1 (terminal B). Leave client 2 connected.
4. Wait longer than 10 seconds.
Actual: lldb-dap exits and client 2's connection is closed, even though it never disconnected.
Expected: lldb-dap keeps running while client 2 is connected. It exits only after client 2 also disconnects and a further 10 seconds pass.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs