mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
6246ff3f0a
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. |
||
---|---|---|
.. | ||
utils | ||
agent-client.c | ||
agent-socket.c | ||
askpass.c | ||
cliloop.c | ||
CMakeLists.txt | ||
columns.c | ||
columns.h | ||
config-gtk.c | ||
config-unix.c | ||
console.c | ||
dialog.c | ||
fd-socket.c | ||
gss.c | ||
gtk-common.c | ||
gtkcompat.h | ||
gtkmisc.h | ||
keygen-noise.c | ||
local-proxy.c | ||
main-gtk-application.c | ||
main-gtk-simple.c | ||
network.c | ||
no-gtk.c | ||
noise.c | ||
osxlaunch.c | ||
pageant.c | ||
peerinfo.c | ||
platform.h | ||
plink.c | ||
printing.c | ||
procnet.c | ||
psocks.c | ||
psusan.c | ||
pterm-config-xpm.c | ||
pterm-xpm.c | ||
pterm.bundle | ||
pterm.c | ||
pterm.plist | ||
pty.c | ||
putty-config-xpm.c | ||
putty-xpm.c | ||
putty.bundle | ||
putty.c | ||
putty.plist | ||
serial.c | ||
sftp.c | ||
sftpserver.c | ||
sharing.c | ||
storage.c | ||
unicode.c | ||
unifont.c | ||
unifont.h | ||
uppity.c | ||
uxsel.c | ||
window.c | ||
x11.c | ||
x11misc.h |