mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Stop setting mc->eof_sent if we haven't.
Looks as if I introduced this bug in commit 431f92ade
, when I moved
mainchan out into its own source file: the previous version of
mainchan_send_eof conditionalised the setting of mc->eof_sent in the
same if statement that actually sent the EOF, but somehow, in the new
version, only one of those operations was inside the if.
The effect is that in plink -nc mode, if the server sends EOF first,
the client stops listening to standard input at its own end, so it
never knows when to send EOF back and clean things up.
This commit is contained in:
parent
d2f79e2544
commit
f9f5a617b2
@ -386,9 +386,9 @@ static void mainchan_send_eof(Channel *chan)
|
||||
*/
|
||||
sshfwd_write_eof(mc->sc);
|
||||
ppl_logevent(("Sent EOF message"));
|
||||
mc->eof_sent = true;
|
||||
ssh_set_wants_user_input(mc->cl, false); /* stop reading from stdin */
|
||||
}
|
||||
mc->eof_sent = true;
|
||||
ssh_set_wants_user_input(mc->cl, false); /* now stop reading from stdin */
|
||||
}
|
||||
|
||||
static void mainchan_set_input_wanted(Channel *chan, bool wanted)
|
||||
|
Loading…
Reference in New Issue
Block a user