mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Separate backend_send from backend_sendbuffer.
On a similar theme of separating the query operation from the attempted change, backend_send() now no longer has the side effect of returning the current size of the send buffer. Instead, you have to call backend_sendbuffer() every time you want to know that.
This commit is contained in:
@ -106,7 +106,8 @@ static size_t sshproxy_write(Socket *s, const void *data, size_t len)
|
||||
SshProxy *sp = container_of(s, SshProxy, sock);
|
||||
if (!sp->backend)
|
||||
return 0;
|
||||
return backend_send(sp->backend, data, len);
|
||||
backend_send(sp->backend, data, len);
|
||||
return backend_sendbuffer(sp->backend);
|
||||
}
|
||||
|
||||
static size_t sshproxy_write_oob(Socket *s, const void *data, size_t len)
|
||||
|
Reference in New Issue
Block a user