From 3b11ff0c4c0f7466bf907018ad745278b06d6673 Mon Sep 17 00:00:00 2001 From: Masaq- Date: Sun, 29 May 2016 03:56:04 +0000 Subject: [PATCH] Speed up legacy mode by dropping unless client is ready to send. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 38b573b..9cf2895 100644 --- a/src/client.c +++ b/src/client.c @@ -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)