Speed up legacy mode by dropping unless client is ready to send.

This commit is contained in:
Masaq- 2016-05-29 03:56:04 +00:00
parent 8e15a73a77
commit 3b11ff0c4c
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ client_tunnel(int tun_fd, int dns_fd)
}
FD_ZERO(&fds);
if (!is_sending() || outchunkresent >= 2) {
if (!is_sending() || outchunkresent >= 2 || !lazymode) {
/* If re-sending upstream data, chances are that
we're several seconds behind already and TCP
will start filling tun buffer with (useless)