Fixed issue of using HTTP timeout as TCP timeout value.

This commit is contained in:
Vasily Nemkov 2019-10-16 16:04:26 +03:00
parent b70ca30447
commit 94095fcb92

View File

@ -89,7 +89,7 @@ struct ConnectionTimeouts
const auto & settings = context.getSettingsRef();
const auto & config = context.getConfigRef();
Poco::Timespan http_keep_alive_timeout{config.getUInt("keep_alive_timeout", 10), 0};
return ConnectionTimeouts(settings.http_connection_timeout, settings.http_send_timeout, settings.http_receive_timeout, http_keep_alive_timeout);
return ConnectionTimeouts(settings.http_connection_timeout, settings.http_send_timeout, settings.http_receive_timeout, settings.tcp_keep_alive_timeout, http_keep_alive_timeout);
}
};