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:
@ -204,7 +204,8 @@ size_t stdin_gotdata(struct handle *h, const void *data, size_t len, int err)
|
||||
noise_ultralight(NOISE_SOURCE_IOLEN, len);
|
||||
if (backend_connected(backend)) {
|
||||
if (len > 0) {
|
||||
return backend_send(backend, data, len);
|
||||
backend_send(backend, data, len);
|
||||
return backend_sendbuffer(backend);
|
||||
} else {
|
||||
backend_special(backend, SS_EOF, 0);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user