Fix timeout in epoll_wait for RemoteQueryExecutorReadContext

This commit is contained in:
Nikolai Kochetov 2021-02-19 12:20:24 +03:00
parent d438d7e390
commit ed4697cffc

View File

@ -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);
}