From ed4697cffc83c3b4c34d11189e9e300c969da618 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 19 Feb 2021 12:20:24 +0300 Subject: [PATCH] Fix timeout in epoll_wait for RemoteQueryExecutorReadContext --- src/DataStreams/RemoteQueryExecutorReadContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataStreams/RemoteQueryExecutorReadContext.cpp b/src/DataStreams/RemoteQueryExecutorReadContext.cpp index c79fffafcb1..3cc24ad5056 100644 --- a/src/DataStreams/RemoteQueryExecutorReadContext.cpp +++ b/src/DataStreams/RemoteQueryExecutorReadContext.cpp @@ -149,7 +149,7 @@ bool RemoteQueryExecutorReadContext::checkTimeoutImpl() const int num_events = 0; while (num_events <= 0) { - num_events = epoll_wait(epoll_fd, events, 3, 0); + num_events = epoll_wait(epoll_fd, events, 3, -1); if (num_events == -1 && errno != EINTR) throwFromErrno("Failed to epoll_wait", ErrorCodes::CANNOT_READ_FROM_SOCKET); }