Browse Source

Use non blocking receive in parse_client_msg as we check for read readiness with wait_read_select first, and there is the unlikely event the state changes

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

2
src/connector.c

@ -333,7 +333,7 @@ retry:
return;
}
buflen = PAGESIZE - client->bufofs;
ret = recv(client->fd, client->buf + client->bufofs, buflen, 0);
ret = recv(client->fd, client->buf + client->bufofs, buflen, MSG_DONTWAIT);
if (ret < 1) {
/* We should have something to read if called since poll set
* this fd's revents status so if there's nothing it means the

Loading…
Cancel
Save