[PR #5286] Control: Start the connection outside of lock #26230

Open
opened 2026-01-31 09:14:48 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/5286

State: closed
Merged: Yes


When the connection printed text immediately, synchronously, as part of
Start() it would cause terminal to deadlock. We should start the
connection outside of lock.

The ConptyConnection would do this when it failed to launch something
(trivial repro: wt -- xyz).

The TelnetConnection would do this all the time, because local loopback
telnet is fast and easy.

References

PR Checklist

  • Closes a crash I ran into today
  • work here
  • tested
  • Requires documentation to be updated
  • C O R E

Validation

Attempted to run the failing scenario.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/5286 **State:** closed **Merged:** Yes --- When the connection printed text immediately, synchronously, as part of Start() it would cause terminal to deadlock. We should start the connection outside of lock. The ConptyConnection would do this when it failed to launch something (trivial repro: `wt -- xyz`). The TelnetConnection would do this all the time, because local loopback telnet is fast and easy. ## References ## PR Checklist * [x] Closes a crash I ran into today * [x] work here * [x] tested * [ ] Requires documentation to be updated * [x] C O R E ## Validation Attempted to run the failing scenario.
claunia added the pull-request label 2026-01-31 09:14:48 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26230