1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/otherbackends
Simon Tatham d42f1fe96d Remove 'calling_back' parameter from plug_closing.
It was totally unused. No implementation of the 'closing' method in a
Plug vtable was checking it for any reason at all, except for
ProxySocket which captured it from its client in order to pass on to
its server (which, perhaps after further iterations of ProxySocket,
would have ended up ignoring it similarly). And every caller of
plug_closing set it to 0 (aka false), except for the one in sshproxy.c
which passed true (but it would have made no difference to anyone).

The comment in network.h refers to a FIXME comment which was in
try_send() when that code was written (see winnet.c in commit
7b0e082700). That FIXME is long gone, replaced by a use of a
toplevel callback. So I think the aim must have been to avoid
re-entrancy when sk_write called try_send which encountered a socket
error and called back to plug_closing - but that's long since fixed by
other means now.
2021-10-24 09:58:59 +01:00
..
CMakeLists.txt Move other backends into a subdirectory. 2021-04-22 18:24:15 +01:00
raw.c Remove 'calling_back' parameter from plug_closing. 2021-10-24 09:58:59 +01:00
rlogin.c Remove 'calling_back' parameter from plug_closing. 2021-10-24 09:58:59 +01:00
supdup.c Remove 'calling_back' parameter from plug_closing. 2021-10-24 09:58:59 +01:00
telnet.c Remove 'calling_back' parameter from plug_closing. 2021-10-24 09:58:59 +01:00
testback.c testback.c: remove emacs magic comment. 2021-09-12 15:10:35 +01:00