From: David Woodhouse Date: Mon, 29 Sep 2008 01:15:33 +0000 (+0100) Subject: Latency will be a lot better if we actually select on the right fd X-Git-Tag: v0.90~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b5cc254352e6c5352f97601f8bdd494261e06f1;p=platform%2Fupstream%2Fopenconnect.git Latency will be a lot better if we actually select on the right fd --- diff --git a/dtls.c b/dtls.c index 1a70d28..2c370a2 100644 --- a/dtls.c +++ b/dtls.c @@ -203,7 +203,7 @@ int setup_dtls(struct anyconnect_info *vpninfo) fcntl(vpninfo->dtls_fd, F_SETFL, fcntl(vpninfo->dtls_fd, F_GETFL) | O_NONBLOCK); - vpn_add_pollfd(vpninfo, vpninfo->ssl_fd, POLLIN|POLLHUP|POLLERR); + vpn_add_pollfd(vpninfo, vpninfo->dtls_fd, POLLIN|POLLHUP|POLLERR); vpninfo->last_dtls_rx = vpninfo->last_dtls_tx = time(NULL); if (verbose)