1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/ssh
Simon Tatham 6246ff3f0a New Seat callback, seat_sent().
This is used to notify the Seat that some data has been cleared from
the backend's outgoing data buffer. In other words, it notifies the
Seat that it might be worth calling backend_sendbuffer() again.

We've never needed this before, because until now, Seats have always
been the 'main program' part of the application, meaning they were
also in control of the event loop. So they've been able to call
backend_sendbuffer() proactively, every time they go round the event
loop, instead of having to wait for a callback.

But now, the SSH proxy is the first example of a Seat without
privileged access to the event loop, so it has no way to find out that
the backend's sendbuffer has got smaller. And without that, it can't
pass that notification on to plug_sent, to unblock in turn whatever
the proxied connection might have been waiting to send.

In fact, before this commit, sshproxy.c never called plug_sent at all.
As a result, large data uploads over an SSH jump host would hang
forever as soon as the outgoing buffer filled up for the first time:
the main backend (to which sshproxy.c was acting as a Socket) would
carefully stop filling up the buffer, and then never receive the call
to plug_sent that would cause it to start again.

The new callback is ignored everywhere except in sshproxy.c. It might
be a good idea to remove backend_sendbuffer() entirely and convert all
previous uses of it into non-empty implementations of this callback,
so that we've only got one system; but for the moment, I haven't done
that.
2021-06-27 13:52:48 +01:00
..
agentf.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
bpp1.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
bpp2.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
bpp-bare.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
bpp.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
censor1.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
censor2.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
channel.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
CMakeLists.txt Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
common.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection1-client.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection1-server.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection1.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection1.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection2-client.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection2-server.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
connection2.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
connection2.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
crc-attack-detector.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
gss.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
gssc.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
gssc.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
kex2-client.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
kex2-server.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
login1-server.c Uppity: add stunt options for trivial authentication. 2021-06-19 21:34:56 +01:00
login1.c New option to reject 'trivial' success of userauth. 2021-06-19 21:34:56 +01:00
mainchan.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
nogss.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
nosharing.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
pgssapi.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
pgssapi.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
portfwd.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
ppl.h New option to reject 'trivial' success of userauth. 2021-06-19 21:34:56 +01:00
scpserver.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
server.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
server.h Uppity: add stunt options for trivial authentication. 2021-06-19 21:34:56 +01:00
sesschan.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
sftp.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
sftp.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
sftpcommon.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
sftpserver.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
sharing.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
signal-list.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
ssh.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
transient-hostkey-cache.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
transport2.c New Seat callback, seat_sent(). 2021-06-27 13:52:48 +01:00
transport2.h Spelling: standardise on "DSA", not "DSS". 2021-04-22 18:34:47 +01:00
ttymode-list.h Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
userauth2-client.c New option to reject 'trivial' success of userauth. 2021-06-19 21:34:56 +01:00
userauth2-server.c Uppity: add stunt options for trivial authentication. 2021-06-19 21:34:56 +01:00
verstring.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
x11fwd.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
zlib.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00