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

Children attach improvement #851

Merged
merged 2 commits into from Dec 2, 2021

Conversation

vityank
Copy link
Contributor

@vityank vityank commented Dec 1, 2021

There is a long time outstanding issue, there during launch some PuTTY processes could stay detached(Float state), and nothing would connect them back in the same SP run. Chances of this increased with the number of open sessions and was almost non-existent below 10. However for ~20 sessions, yet still quite rare it could occur, requiring one SP restart at most cases.
So I ignored the issue for years.

However, recently I've upgraded my VM Windows 10 from 1809 to new 21H2, and now the issue became interminent(9/10 runs SP loads with this issue). I've tested by reverting the VM snapshot to old Win10, there SP worked well again.
So i started to research into this and it was long process. Today I found that some extra delay between Start and WaitForInputHandle calls, had a positive effect on this and continued to investigate. I've updated the children start code to load it maximized initially(As AttachToWindow always maximizes it later), and SP now always starts properly(Without extra delay).
So it seems like timing issue of waiting for input and Putty window possibly starting minimized sometimes, or something like that.

…s the known issue of non-captured detached children windows during start, especially Putty, due to refocusing tricks conflict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants