From a7b2c3d8aa2c41d460c1cfac8e98f42068737582 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 4 Feb 2015 23:02:22 +1100 Subject: [PATCH] Shorten sleep interval while accept flag is not set --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 8176b0ab..73866421 100644 --- a/src/connector.c +++ b/src/connector.c @@ -411,7 +411,7 @@ void *receiver(void *arg) client_instance_t *client; while (unlikely(!cdata->accept)) - cksleep_ms(100); + cksleep_ms(10); ret = epoll_wait(epfd, &event, 1, 1000); if (unlikely(ret < 1)) { if (unlikely(ret == -1)) {