limit remote timeouts to max_execution_time for SelectStreamFactory

This commit is contained in:
Konstantin Podshumok 2019-03-03 00:38:41 +03:00
parent d688203029
commit 633f2f2664

View File

@ -185,7 +185,9 @@ void SelectStreamFactory::createForShard(
-> BlockInputStreamPtr
{
auto current_settings = context.getSettingsRef();
auto timeouts = ConnectionTimeouts::getTCPTimeoutsWithFailover(current_settings);
auto timeouts = ConnectionTimeouts::getTCPTimeoutsWithFailover(
current_settings).getSaturated(
current_settings.max_execution_time);
std::vector<ConnectionPoolWithFailover::TryResult> try_results;
try
{