Commit 795b85e
committed
wolfsshd: save shellBuffer on WS_WANT_WRITE
ChannelIdSend / extended_data_send returning WS_WANT_WRITE set
wantWrite but didn't save cnt_r, so the next read overwrote the
held bytes. Store cnt_r in windowFull at all three read sites
(stderr, stdout, pty childFd); flag windowFullExt for stderr so
the retry routes through extended_data_send.1 parent 62b87e9 commit 795b85e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1691 | 1691 | | |
1692 | 1692 | | |
1693 | 1693 | | |
| 1694 | + | |
| 1695 | + | |
1694 | 1696 | | |
1695 | 1697 | | |
1696 | 1698 | | |
| |||
1729 | 1731 | | |
1730 | 1732 | | |
1731 | 1733 | | |
| 1734 | + | |
1732 | 1735 | | |
1733 | 1736 | | |
1734 | 1737 | | |
| |||
1765 | 1768 | | |
1766 | 1769 | | |
1767 | 1770 | | |
| 1771 | + | |
1768 | 1772 | | |
1769 | 1773 | | |
1770 | 1774 | | |
| |||
0 commit comments