From 36b043db0dab4b3add701ca62363e97619b6e15c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 28 Jan 2015 16:17:47 +0100 Subject: [PATCH] client: Don't use select() before reading from a client connection. This doesn't work well if the connection buffers data (like with the upcoming SSL support). --- src/client/sock.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/sock.c b/src/client/sock.c index cb506a5..f9929da 100644 --- a/src/client/sock.c +++ b/src/client/sock.c @@ -384,9 +384,6 @@ sdb_client_recv(sdb_client_t *client, while (42) { ssize_t status; - if (sdb_select(client->fd, SDB_SELECTIN)) - return -1; - errno = 0; status = client->read(client, buf, req); if (status < 0) { -- 2.30.2