mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #49863 from alekar/fix-osx-setsockopt-errors
Fix error on OS X regarding resetting timeouts.
This commit is contained in:
commit
bd2f47591a
@ -31,13 +31,15 @@ TimeoutSetter::~TimeoutSetter()
|
||||
{
|
||||
try
|
||||
{
|
||||
bool connected = socket.impl()->initialized();
|
||||
if (!connected)
|
||||
return;
|
||||
|
||||
socket.setSendTimeout(old_send_timeout);
|
||||
socket.setReceiveTimeout(old_receive_timeout);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
/// Sometimes caught on Mac OS X. This message can be safely ignored.
|
||||
/// If you are developer using Mac, please debug this error message by yourself.
|
||||
tryLogCurrentException("Client", "TimeoutSetter: Can't reset timeouts");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user