Browse Source

Shorten sleep interval while accept flag is not set

master
Con Kolivas 10 years ago
parent
commit
a7b2c3d8aa
  1. 2
      src/connector.c

2
src/connector.c

@ -411,7 +411,7 @@ void *receiver(void *arg)
client_instance_t *client; client_instance_t *client;
while (unlikely(!cdata->accept)) while (unlikely(!cdata->accept))
cksleep_ms(100); cksleep_ms(10);
ret = epoll_wait(epfd, &event, 1, 1000); ret = epoll_wait(epfd, &event, 1, 1000);
if (unlikely(ret < 1)) { if (unlikely(ret < 1)) {
if (unlikely(ret == -1)) { if (unlikely(ret == -1)) {

Loading…
Cancel
Save