- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit035ad33
fix: initialize pseudo console with default size for SSH sessions [2.27] (#20490)
> Resolved an invalid parameter error (-2147024809) during PTY creationon Windows 11 22H2 (but not only) when connecting via JetBrains Toolboxwhich spawns the native SSH client with `-tt` forcing PTY allocationeven though there is no "terminal" on the client side to query its size.>> CreatePseudoConsole doesn't accept a 0x0 (zero width and zero height)console size and unfortunately, there is NO explicit documentation inthe official Microsoft documentation that states the minimum validvalues or explicitly prohibits 0x0.>> Looking at real-world implementations in the search results, allexamples use reasonable non-zero values.>> I tested this with a local Windows VM registered to dev.coder.com i.e.externally managed workspace.Relates to#20468Co-authored-by: Faur Ioan-Aurel <fioan89@gmail.com>1 parent230b55b commit035ad33
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
| |||
0 commit comments
Comments
(0)