1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Good grief. When I originally wrote the local proxy code two years

ago, I apparently caused all data received from local proxies to be
unconditionally tagged as TCP Urgent. Most network backends ignore
this, but it's critical to the Telnet backend, which will ignore all
Urgent-marked data in the assumption that there's a SYNCH on its way
that it should wait for. Nobody has noticed in two years, presumably
meaning that nobody has ever tried to do Telnet over a local proxy
in that time.

[originally from svn r8158]
This commit is contained in:
Simon Tatham 2008-08-31 21:45:39 +00:00
parent 0251dbf13e
commit 4829802c43
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ static int localproxy_select_result(int fd, int event)
} else if (ret == 0) {
return plug_closing(s->plug, NULL, 0, 0);
} else {
return plug_receive(s->plug, 1, buf, ret);
return plug_receive(s->plug, 0, buf, ret);
}
} else if (event == 2) {
assert(fd == s->to_cmd);

View File

@ -39,7 +39,7 @@ int localproxy_gotdata(struct handle *h, void *data, int len)
} else if (len == 0) {
return plug_closing(ps->plug, NULL, 0, 0);
} else {
return plug_receive(ps->plug, 1, data, len);
return plug_receive(ps->plug, 0, data, len);
}
}