diff options
| -rw-r--r-- | src/sock_stuff.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sock_stuff.c b/src/sock_stuff.c index b51d6ba..137375d 100644 --- a/src/sock_stuff.c +++ b/src/sock_stuff.c | |||
| @@ -287,7 +287,10 @@ int recv_buf_timeout(int fd, void *data, size_t length, int flags, | |||
| 287 | // but this is an error condition | 287 | // but this is an error condition |
| 288 | if (verbose >= 3) | 288 | if (verbose >= 3) |
| 289 | fprintf(stderr, "%s: fd=%d recv returned 0\n", __func__, fd); | 289 | fprintf(stderr, "%s: fd=%d recv returned 0\n", __func__, fd); |
| 290 | return -1; | 290 | return -EAGAIN; |
| 291 | } | ||
| 292 | if (result < 0) { | ||
| 293 | return -errno; | ||
| 291 | } | 294 | } |
| 292 | return result; | 295 | return result; |
| 293 | } | 296 | } |
