mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Fix timeout in epoll_wait for RemoteQueryExecutorReadContext
This commit is contained in:
parent
d438d7e390
commit
ed4697cffc
@ -149,7 +149,7 @@ bool RemoteQueryExecutorReadContext::checkTimeoutImpl() const
|
|||||||
int num_events = 0;
|
int num_events = 0;
|
||||||
while (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)
|
if (num_events == -1 && errno != EINTR)
|
||||||
throwFromErrno("Failed to epoll_wait", ErrorCodes::CANNOT_READ_FROM_SOCKET);
|
throwFromErrno("Failed to epoll_wait", ErrorCodes::CANNOT_READ_FROM_SOCKET);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user