mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #35498 from ClickHouse/fix_keeper_timeout_bug
Fix keeper client timeout bug
This commit is contained in:
commit
dbf3e0e767
@ -1022,8 +1022,8 @@ if (ThreadFuzzer::instance().isEffective())
|
||||
std::make_unique<TCPServer>(
|
||||
new KeeperTCPHandlerFactory(
|
||||
config_getter, global_context->getKeeperDispatcher(),
|
||||
global_context->getSettingsRef().receive_timeout,
|
||||
global_context->getSettingsRef().send_timeout,
|
||||
global_context->getSettingsRef().receive_timeout.totalSeconds(),
|
||||
global_context->getSettingsRef().send_timeout.totalSeconds(),
|
||||
false), server_pool, socket));
|
||||
});
|
||||
|
||||
@ -1045,8 +1045,8 @@ if (ThreadFuzzer::instance().isEffective())
|
||||
std::make_unique<TCPServer>(
|
||||
new KeeperTCPHandlerFactory(
|
||||
config_getter, global_context->getKeeperDispatcher(),
|
||||
global_context->getSettingsRef().receive_timeout,
|
||||
global_context->getSettingsRef().send_timeout, true), server_pool, socket));
|
||||
global_context->getSettingsRef().receive_timeout.totalSeconds(),
|
||||
global_context->getSettingsRef().send_timeout.totalSeconds(), true), server_pool, socket));
|
||||
#else
|
||||
UNUSED(port);
|
||||
throw Exception{"SSL support for TCP protocol is disabled because Poco library was built without NetSSL support.",
|
||||
|
@ -32,14 +32,14 @@ public:
|
||||
KeeperTCPHandlerFactory(
|
||||
ConfigGetter config_getter_,
|
||||
std::shared_ptr<KeeperDispatcher> keeper_dispatcher_,
|
||||
Poco::Timespan receive_timeout_,
|
||||
Poco::Timespan send_timeout_,
|
||||
uint64_t receive_timeout_seconds,
|
||||
uint64_t send_timeout_seconds,
|
||||
bool secure)
|
||||
: config_getter(config_getter_)
|
||||
, keeper_dispatcher(keeper_dispatcher_)
|
||||
, log(&Poco::Logger::get(std::string{"KeeperTCP"} + (secure ? "S" : "") + "HandlerFactory"))
|
||||
, receive_timeout(receive_timeout_)
|
||||
, send_timeout(send_timeout_)
|
||||
, receive_timeout(/* seconds = */ receive_timeout_seconds, /* microseconds = */ 0)
|
||||
, send_timeout(/* seconds = */ send_timeout_seconds, /* microseconds = */ 0)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user