mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
clickhouse-keeper: fix implementation of server with poll()
This commit is contained in:
parent
5d40e7ccb7
commit
f9e0a202a7
@ -175,10 +175,12 @@ struct SocketInterruptablePollWrapper
|
|||||||
}
|
}
|
||||||
while (rc < 0 && errno == POCO_EINTR);
|
while (rc < 0 && errno == POCO_EINTR);
|
||||||
|
|
||||||
if (rc >= 1 && poll_buf[0].revents & POLLIN)
|
if (rc >= 1) {
|
||||||
socket_ready = true;
|
if (poll_buf[0].revents & POLLIN)
|
||||||
if (rc >= 2 && poll_buf[1].revents & POLLIN)
|
socket_ready = true;
|
||||||
fd_ready = true;
|
if (poll_buf[1].revents & POLLIN)
|
||||||
|
fd_ready = true;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user