From de09cf982772733945dd853bc9a54b7b275af705 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 2 Aug 2016 15:02:38 +0200 Subject: llmnrd: Increase select() timeout There is no need to have such a short timeout value (200us), increase it to 50ms in order to reduce CPU load. Signed-off-by: Tobias Klauser --- llmnr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmnr.c b/llmnr.c index b3b2835..a833ef1 100644 --- a/llmnr.c +++ b/llmnr.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2015 Tobias Klauser + * Copyright (C) 2014-2016 Tobias Klauser * * This file is part of llmnrd. * @@ -305,7 +305,7 @@ int llmnr_run(void) nfds = llmnr_sock_ipv4 + 1; tv.tv_sec = 0; - tv.tv_usec = 200; + tv.tv_usec = 50000; ret = select(nfds, &rfds, NULL, NULL, &tv); if (ret < 0) { -- cgit v1.2.3-54-g00ecf '>
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode: