You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PTY Exited event never fires when DuplicateHandle fails, costing a 10s stall per session at shutdown #91
If Exited never fires, that session waits out its full 10-second timeout. The disposal loop is sequential, so with N affected sessions it's N × 10s added to shutdown.
Bounded rather than hanging, and DuplicateHandle on a process handle you already own effectively never fails — which is why this is low severity rather than urgent.
Fix
Move the invoke into a finally so every path fires it exactly once:
#82 is about startup/shutdown scaling badly with live session count, attributed mostly to fixed sleeps. This is a second, independent contributor to the same symptom — a conditional 10s per session rather than a fixed delay. Worth ruling in or out while working #82, since with 40 sessions the two are hard to tell apart from the outside.
Activity
fix(pty): always fire Exited so a failed DuplicateHandle can't stall …