mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 16:19:20 +02: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);
|
FD_ZERO(&fds);
|
||||||
if (!is_sending() || outchunkresent >= 2) {
|
if (!is_sending() || outchunkresent >= 2 || !lazymode) {
|
||||||
/* If re-sending upstream data, chances are that
|
/* If re-sending upstream data, chances are that
|
||||||
we're several seconds behind already and TCP
|
we're several seconds behind already and TCP
|
||||||
will start filling tun buffer with (useless)
|
will start filling tun buffer with (useless)
|
||||||
|
|
Loading…
Reference in New Issue