diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 9b62e94aa4..7a29844ab4 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -59,6 +59,7 @@ /* These warnings need to be ignored warning in sdk header */ #include #include +#include #ifndef errno #define errno WSAGetLastError() #endif @@ -1226,7 +1227,7 @@ static esl_ssize_t handle_recv(esl_handle_t *handle, void *data, esl_size_t data esl_ssize_t activity = -1; if (handle->connected) { - if ((activity = esl_wait_sock(handle->sock, -1, ESL_POLL_READ|ESL_POLL_ERROR)) > 0) { + if ((activity = esl_wait_sock(handle->sock, 1000, ESL_POLL_READ|ESL_POLL_ERROR)) > 0) { if ((activity & ESL_POLL_ERROR)) { activity = -1; } else if ((activity & ESL_POLL_READ)) {