diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-09-27 21:19:32 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-09-27 21:19:32 +0000 |
commit | 4c6b03f3fb2659eb5e96c095f203b38931124b78 (patch) | |
tree | eecc1eb3d6e994be33742ddeffaf6d6aa18ff085 | |
parent | 49ec75a2f5a4b91335d8604f1150eb8662efb826 (diff) |
remove disabling keepalives since we handle SIGPIPE anyway
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1220 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/myldap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index aa5ea50..ab68f9f 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -685,12 +685,6 @@ static int do_open(MYLDAP_SESSION *session) log_log(LOG_WARNING,"ldap_unbind() failed: %s",ldap_err2string(rc2)); return rc; } - /* disable keepalive on the LDAP connection socket (why?) */ - if (ldap_get_option(session->ld,LDAP_OPT_DESC,&sd)==LDAP_SUCCESS) - { - /* ignore errors */ - (void)setsockopt(sd,SOL_SOCKET,SO_KEEPALIVE,(void *)&off,sizeof(off)); - } /* update last activity and finish off state */ time(&(session->lastactivity)); return LDAP_SUCCESS; |