mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
More for prev commit
This commit is contained in:
parent
dc12e58d38
commit
b87553684a
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
|
|||
if ( ld->ld_options.ldo_keepalive_probes > 0 )
|
||||
{
|
||||
#ifdef TCP_KEEPCNT
|
||||
if ( setsockopt( s, SOL_TCP, TCP_KEEPCNT,
|
||||
if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPCNT,
|
||||
(void*) &ld->ld_options.ldo_keepalive_probes,
|
||||
sizeof(ld->ld_options.ldo_keepalive_probes) ) == AC_SOCKET_ERROR )
|
||||
{
|
||||
|
|
@ -179,7 +179,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
|
|||
if ( ld->ld_options.ldo_keepalive_interval > 0 )
|
||||
{
|
||||
#ifdef TCP_KEEPINTVL
|
||||
if ( setsockopt( s, SOL_TCP, TCP_KEEPINTVL,
|
||||
if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPINTVL,
|
||||
(void*) &ld->ld_options.ldo_keepalive_interval,
|
||||
sizeof(ld->ld_options.ldo_keepalive_interval) ) == AC_SOCKET_ERROR )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue