diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/socket.c b/common/socket.c index aa97848..0ee8105 100644 --- a/common/socket.c +++ b/common/socket.c | |||
| @@ -412,6 +412,10 @@ int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout) | |||
| 412 | strerror(errno)); | 412 | strerror(errno)); |
| 413 | return -1; | 413 | return -1; |
| 414 | } | 414 | } |
| 415 | } else if (sret == 0) { | ||
| 416 | if (verbose >= 2) | ||
| 417 | fprintf(stderr, "%s: timeout\n", __func__); | ||
| 418 | return -ETIMEDOUT; | ||
| 415 | } | 419 | } |
| 416 | } while (eagain); | 420 | } while (eagain); |
| 417 | 421 | ||
