head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.06.09.15.05.34; author adam; state Exp; branches; next ; commitid DV1L9obdpNNXq8JG; desc @@ 1.1 log @clickhouse-cpp: added version 2.6.1 C++ client for ClickHouse. @ text @$NetBSD$ --- clickhouse/base/socket.cpp.orig 2026-06-08 12:35:35.665324258 +0000 +++ clickhouse/base/socket.cpp @@@@ -355,7 +355,7 @@@@ void Socket::SetTcpKeepAlive(int idle, int intvl, int #if defined(_unix_) setsockopt(handle_, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val)); -# if defined(_linux_) +# if defined(_linux_) || defined(_bsd_) setsockopt(handle_, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle)); # elif defined(_darwin_) setsockopt(handle_, IPPROTO_TCP, TCP_KEEPALIVE, &idle, sizeof(idle)); @