-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Fix bug with hanged pseudoterminal #84181
Conversation
You can run these tests with
To use |
@Tyriar It seems that finally I made the tests pass. Could you take a look? :-) Glad that you have the tests. When I made initial change, I didn't find them. Also, what do you do if a build breaks. Is there a good way to clean everything? I have it all the time when I have yarn watch running, and change branches. |
@Tyriar I also have a question for getting rid of delays in other place. There's this code:
Do I understand correctly that the else branch does nothing useful? The then block is activated only if the terminal is found, and the value returned by then has no side effects. |
Will try review soon
Typically we don't need to do anything here as TypeScript is pretty good at handling this. If I do get into this state I'll either delete
I think that was to restart retrying maybe? That TODO is actually talking about how I proposed we fix this; create a bunch of promises and store their resolves instead of using polling. |
@Tyriar Are there any updates on this? This fix is very important for us. |
@Tyriar Any updates on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@solomatov I made some changes to simplify the PR. Let me know if this still looks good and if so I'll merge in.
@Tyriar You know this code definitely better than me, and your changes looks good to me, so feel free to merge. |
@Tyriar Do you need help resolving this merge? |
@Tyriar Remerged again, and hopefully, it will work well. |
@Tyriar Seems merge worked this time. |
This PR fixes #84174
More time to initialize terminal as well as exponential backoff for wait periods.