summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b81a85)
raw | patch | inline | side by side (parent: 7b81a85)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 28 Jan 2015 15:17:47 +0000 (16:17 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 28 Jan 2015 15:17:47 +0000 (16:17 +0100) |
This doesn't work well if the connection buffers data (like with the upcoming
SSL support).
SSL support).
src/client/sock.c | patch | blob | history |
diff --git a/src/client/sock.c b/src/client/sock.c
index cb506a55565f52cf3400f21d6a29a38b17ebb96c..f9929dacd3c63eedb3919400d210e77445f55771 100644 (file)
--- a/src/client/sock.c
+++ b/src/client/sock.c
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) {