mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 04:43:17 +00:00
Speed up legacy mode by dropping unless client is ready to send.
This commit is contained in:
parent
8e15a73a77
commit
3b11ff0c4c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue