Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control: Start the connection outside of lock #5286

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

DHowett-MSFT
Copy link
Contributor

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.

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.
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@DHowett-MSFT DHowett-MSFT merged commit 5622f23 into master Apr 8, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/duhowett/mr_howett_tear_down_this_lock branch April 8, 2020 20:55
@ghost
Copy link

ghost commented Apr 22, 2020

🎉Windows Terminal Preview v0.11.1121.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants