]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
src/tlsproxy.c: Fix wrong timeout for poll(), -1 is infinity.
authorSimon Ruderich <simon@ruderich.org>
Sun, 6 Mar 2011 00:34:55 +0000 (01:34 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 6 Mar 2011 00:34:55 +0000 (01:34 +0100)
src/tlsproxy.c

index 396e0acea60b5063fd8b6e33c05a0fdcab55b9ce..508b09dfa9d0d0f6bf0e67e3bbb57d7ff804948a 100644 (file)
@@ -379,7 +379,7 @@ static void transfer_data(int client, int server) {
     fds[1].revents = 0;
 
     for (;;) {
-        int result = poll(fds, 2, 0);
+        int result = poll(fds, 2, -1 /* no timeout */);
         if (result < 0) {
             perror("poll()");
             return;