From: Simon Ruderich Date: Sun, 6 Mar 2011 00:34:55 +0000 (+0100) Subject: src/tlsproxy.c: Fix wrong timeout for poll(), -1 is infinity. X-Git-Tag: 0.1~36 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=5a1ebfbc563350d4492f143f96bb1e116b83e881;p=tlsproxy%2Ftlsproxy.git src/tlsproxy.c: Fix wrong timeout for poll(), -1 is infinity. --- diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 396e0ac..508b09d 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -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;