From 5a1ebfbc563350d4492f143f96bb1e116b83e881 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 6 Mar 2011 01:34:55 +0100 Subject: [PATCH] src/tlsproxy.c: Fix wrong timeout for poll(), -1 is infinity. --- src/tlsproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2