Browse Source

Poll every 100ms instead of every second in the connector to rapidly pick up new clients

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

2
src/connector.c

@ -302,7 +302,7 @@ retry:
cksleep_ms(100); cksleep_ms(100);
goto retry; goto retry;
} }
ret = poll(fds, nfds, 1000); ret = poll(fds, nfds, 100);
if (unlikely(ret < 0)) { if (unlikely(ret < 0)) {
LOGERR("Failed to poll in receiver"); LOGERR("Failed to poll in receiver");
goto out; goto out;

Loading…
Cancel
Save