]> git.sesse.net Git - greproxy/commitdiff
Fix multi-timeouts also in tungre.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 22:53:41 +0000 (23:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 22:53:41 +0000 (23:53 +0100)
tungre.cpp

index 55bd973602b888bbf57e5e5c63ce8c399667c422..fb39982e9f8c216016b9ca2e4784718812497167 100644 (file)
@@ -40,6 +40,7 @@ int main(int argc, char **argv)
                timeval tv = { 1, 0 };
                FD_SET(gre.fd(), &fds);
                FD_SET(tun.fd(), &fds);
+               tun_reorderer.possibly_adjust_tv(&tv);
                tun_pacer.possibly_adjust_tv(&tv);
                int ret = select(1024, &fds, NULL, NULL, &tv);
                if (ret == -1) {