fix poco secure sockets timeouts

This commit is contained in:
Alexander Tokmakov 2020-02-05 18:24:23 +03:00
parent 1206eee2c9
commit 180b5d409d
3 changed files with 8 additions and 3 deletions

4
.gitmodules vendored
View File

@ -1,7 +1,7 @@
[submodule "contrib/poco"]
path = contrib/poco
url = https://github.com/ClickHouse-Extras/poco
branch = clickhouse
url = https://github.com/tavplubix/poco
branch = yet_another_timeouts_fix
[submodule "contrib/zstd"]
path = contrib/zstd
url = https://github.com/facebook/zstd.git

2
contrib/poco vendored

@ -1 +1 @@
Subproject commit d478f62bd93c9cd14eb343756ef73a4ae622ddf5
Subproject commit 2d3df42f29745fd96bb3cac1acf453ab57d0ec68

View File

@ -289,6 +289,11 @@ def test_rename(test_cluster):
assert instance.query("select count(id), sum(id) from rename where sid like 'new%'").rstrip() == "10\t245"
test_cluster.pm_random_drops.push_rules(rules)
def test_socket_timeout(test_cluster):
instance = test_cluster.instances['ch1']
# queries should not fail with "Timeout exceeded while reading from socket" in case of EINTR caused by query profiler
for i in range(0, 100):
instance.query("select hostName() as host, count() from cluster('cluster', 'system', 'settings') group by host")
if __name__ == '__main__':
with contextmanager(test_cluster)() as ctx_cluster: